Marius Gavrilescu > POE-Component-IRC-Plugin-Seen-0.001001 > POE::Component::IRC::Plugin::Seen

Download:
POE-Component-IRC-Plugin-Seen-0.001001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001001   Source  

NAME ^

POE::Component::IRC::Plugin::Seen - PoCo-IRC plugin that remembers seeing people

SYNOPSIS ^

  use POE::Component::IRC::Plugin::Seen;

  my $irc = POE::Component::IRC->spawn;
  $irc->plugin_add(Seen => POE::Component::IRC::Plugin::Seen->new(filename => 'mycache.db'));

DESCRIPTION ^

POE::Component::IRC::Plugin::Seen is a PoCo-IRC plugin that remembers what each person around it did last.

When somebody sends him a private message of the form 'seen NICKNAME' or somebody says 'botnick: seen NICKNAME' in a channel with the bot, the plugin answers with the last action NICKNAME did.

METHODS ^

new([filename => value])

Creates a new plugin object suitable for POE::Component::IRC's plugin_add method.

Takes one optional argument, filename, the name of the file to store the plugin's state in. If undef or not given, it keeps the state in memory.

SEE ALSO ^

POE::Component::IRC::Plugin

AUTHOR ^

Marius Gavrilescu <marius@ieval.ro>

COPYRIGHT AND LICENSE ^

Copyright (C) 2013,2014 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: