This module is a POE::Component::IRC plugin which uses POE::Component::IRC::Plugin for its base. It provides access to Google calculator (http://www.google.ca/search?num=100&hl=en&q=2%2B2) from IRC. It accepts input from public channel events, /notice messages as well as /msg (private messages); although that can be configured at will.
Optional. Takes either true or false values, specifies whether or not the plugin should auto respond to calculation requests. When the auto argument is set to a true value plugin will respond to the person requesting calculation with the results automatically. When the auto argument is set to a false value plugin will not respond and you will have to listen to the events emited by the plugin to retrieve the results (see EMITED EVENTS section and response_event argument for details). Defaults to: 1.
Optional. Takes an arrayref of regexes as a value. If the usermask of the person (or thing) requesting the calculation matches any of the regexes listed in the banned arrayref, plugin will ignore the request. Defaults to:  (no bans are set).
Optional. Takes either a true or false value. When debug argument is set to a true value some debugging information will be printed out. When debug argument is set to a false value no debug info will be printed. Defaults to: 0.
The who key will contain the usermask of the user who requested the calculation.
The type key will contain the "type" of the message sent by the requestor. The possible values are: public, notice and privmsg indicating that request was requested in public channel, via /notice and via /msg (private message) respectively.
The channel key will contain the name of the channel from which the request came from. This will only make sense when type key (see above) contains public.
The message key will contain the message which the user has sent to request the calculation.
The term key will contain the term being calculated.
The result key will contain the result of the calculation in other words what you'd see the plugin say when auto (see constructor arguments) is turned on (that's the default). Note: the successful results will begin with Result: and if an error occured during the request, or no result was returned the result's value will begin with Error:.
Please report any bugs or feature requests to bug-poe-component-irc-plugin-google-calculator at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POE-Component-IRC-Plugin-Google-Calculator. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Copyright 2008 Zoffix Znet, all rights reserved.