]> ruin.nu Git - NDIRC.git/blobdiff - ndawn.pl
Removed the global variables for special chans, using targets hashref in Dispatcher...
[NDIRC.git] / ndawn.pl
index e89dc3a38cb982966c07beb93212779e23bea834..ca60ea24e1c6593a29fe7339661c61290e15eafa 100755 (executable)
--- a/ndawn.pl
+++ b/ndawn.pl
@@ -28,6 +28,8 @@ use POE qw(Component::IRC::Qnet::State);
 use NDIRC::CommonStates;
 eval "require NDIRC::$ARGV[0]";
 
+die $@ if $@;
+
 # We create a new PoCo-IRC object
 my $irc = POE::Component::IRC::Qnet::State->spawn(
        nick => $ARGV[0],
@@ -36,10 +38,6 @@ my $irc = POE::Component::IRC::Qnet::State->spawn(
 
 $irc->service_bots(QBOT => 'P@cservice.netgamers.org');
 
-$ND::scanchan = '#testarmer';
-$ND::defchan = '#testarlite';
-$ND::memchan = '#testarmer';
-
 POE::Session->create(
        package_states => [
                'NDIRC::CommonStates' => [ qw(_default _start irc_001 sig_DIE sig_usr1 sig_usr2