X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ndawn.pl;h=eecf5ee2c0d231bd8ec0d506cb1854735fd68c72;hb=4c40fd39668614135ae9370092b5d17355bad15c;hp=672c8ba08454501b1c386e281ae4a52ae12d5512;hpb=139b1bb64717ec8be8d97d2d9efc6caaf9e800ca;p=NDIRC.git diff --git a/ndawn.pl b/ndawn.pl index 672c8ba..eecf5ee 100755 --- a/ndawn.pl +++ b/ndawn.pl @@ -24,13 +24,9 @@ use warnings; use feature ':5.10'; use POE qw(Component::IRC::Qnet::State); -use POE::Component::IRC::Plugin::Logger; -use POE::Component::IRC::Plugin::BotTraffic; -use POE::Component::IRC::Plugin::Connector; -use POE::Component::IRC::Plugin::DCC; use NDIRC::CommonStates; -use NDIRC::Delling; +use NDIRC::Eos; my $nickname = 'ndbot'; my $ircname = 'ND test bot'; @@ -46,28 +42,17 @@ my $irc = POE::Component::IRC::Qnet::State->spawn( $irc->service_bots(QBOT => 'P@cservice.netgamers.org'); -$irc->plugin_add( 'BotTraffic', POE::Component::IRC::Plugin::BotTraffic->new() ); -$irc->plugin_add( 'DCC', POE::Component::IRC::Plugin::DCC->new() ); -$irc->plugin_add('Logger', POE::Component::IRC::Plugin::Logger->new( - Path => 'irclogs', - DCC => 0, - Private => 1, - Public => 1, - Sort_by_date => 1, - Strip_color => 1, - Strip_formatting => 1, -)); - $ND::scanchan = '#testarmer'; $ND::defchan = '#testarlite'; $ND::memchan = '#testarmer'; POE::Session->create( package_states => [ - 'NDIRC::CommonStates' => [ qw(_default _start irc_001 sig_DIE sig_usr2 signal_handler irc_disconnected irc_invite) ], - 'NDIRC::Delling' => [ qw(irc_public irc_msg refresh irc_join) ], + 'NDIRC::CommonStates' => [ qw(_default _start irc_001 sig_DIE sig_usr1 sig_usr2 + signal_handler irc_disconnected irc_invite) ], + 'NDIRC::Eos' => [ qw(irc_public irc_msg refresh irc_join) ], ], - heap => { irc => $irc}, + heap => { irc => $irc }, ); $poe_kernel->run();