]> ruin.nu Git - NDIRC.git/blobdiff - ndawn.pl
A bit more for the common states
[NDIRC.git] / ndawn.pl
index 672c8ba08454501b1c386e281ae4a52ae12d5512..f2eafaa9f74c7dbeb16599badcadf953ffb62509 100755 (executable)
--- a/ndawn.pl
+++ b/ndawn.pl
@@ -24,10 +24,6 @@ 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;
@@ -46,25 +42,14 @@ 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::CommonStates' => [ qw(_default _start irc_001 sig_DIE sig_usr1 sig_usr2
+                       signal_handler irc_disconnected irc_invite) ],
                'NDIRC::Delling' => [ qw(irc_public irc_msg refresh irc_join) ],
        ],
        heap => { irc => $irc},