WWW::Modbot::Test::KnownUser - check a list of known users to see if this one appears there.
Version 0.01
The WWW::Modbot::Test::KnownUser module is a WWW::Modbot::Test implementation which can help support anonymous posting on a forum. See the W::M::Test module for more information about the API.
WWW::Modbot::Test::KnownUser
For a forum which allows entry of a username but doesn't require signon, the KnownUser test can be used to relax the rules a little for posts which claim to be from a user we know. This doesn't scale terribly well, but it's a great way to preserve a small, informal forum without burying it under heaps of spam.
The new function doesn't really do anything, but if we don't provide one, Test.pm will try to call itself.
new
All Test modules have only one function, test. It's passed a hashref containing the fields of the post, and a field name which need not be used. The function sets one or more fields in the hashref which are then evaluated by the ruleset to arrive at a score. The return value is a list of the fields set by the function (this makes testing of modules easier).
test
Michael Roberts, <michael at despammed.com>
<michael at despammed.com>
Please report any bugs or feature requests to bug-www-modbot at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Modbot. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www-modbot at rt.cpan.org
Copyright 2008 Vivtek, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Modbot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Modbot
CPAN shell
perl -MCPAN -e shell install WWW::Modbot
For more information on module installation, please visit the detailed CPAN module installation guide.