The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Horris::Connection - Single IRC Connection

VERSION

version v0.1.2

SYNOPSIS

    use Horris::Connection;

    my $conn = Horris::Connection->new(
        nickname => $nickname,
        port     => $port_number,
        password => $optional_password,
        server   => $server_name,
        username => $username,
                plugins  => [qw/Foo Bar Baz/], 
    );

HOW TO IMPLEMENTS YOUR OWN HOOK METHODS?

1 Make your own Pluggin Module. like a Horris::Connection::Plugin::Foo.
2 check the list what you want to implement event.
  • on_connect - no args

  • on_disconnect - no args

  • on_privatemsg - args with (nickname, Horris::Message)

  • irc_privmsg - args with (Horris::Message)

3 implements
        sub on_connect {
                my ($self) = @_;
                # your stuff here after connected
        }

AUTHOR

hshong <hshong@perl.kr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by hshong.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.