All pastes #47177 Raw Edit

Anonymous

public text v1 · immutable
#47177 ·published 2006-03-27 16:09 UTC
rendered paste body
foreach my $servname ( keys( %$conf ) ) {

  $bots{$servname} = POE::Component::IRC->spawn(
        nick   => $conf->{$servname}->{nick},
        server => $servname,
        port => 6667,
    );
}


my $sess = POE::Session->create(
    package_states => [
        'main' => [qw(
                   _start
                   irc_plugin_add
                   irc_001
                   )
                        ],
    ],
    heap => { irc=>\%bots }

);