]> ruin.nu Git - NDIRC.git/blobdiff - Bot.pm
Fix, we don't use the HEAP anymore
[NDIRC.git] / Bot.pm
diff --git a/Bot.pm b/Bot.pm
index c90f8339d0d061e6009c10c5dd88ac6729ed8860..ccc322941e6ba80c2dcf50c6f68576d0accf67d3 100644 (file)
--- a/Bot.pm
+++ b/Bot.pm
@@ -128,7 +128,7 @@ sub _build_disp {
                $disp->load(@commands);
        }
 
-       my $channels = new IO::File 'channels';
+       my $channels = new IO::File 'channels' or die $!;;
        while (<$channels>){
                my ($chan, @types) = split /\s+/;
                say "$chan - @types";
@@ -196,7 +196,7 @@ sub irc_001 {
 }
 
 sub irc_invite {
-       my ($self,$sender, $who, $channel) = @_[OBJECT,SENDER, HEAP, ARG0 .. ARG1];
+       my ($self,$sender, $who, $channel) = @_[OBJECT,SENDER, ARG0 .. ARG1];
        my $irc = $sender->get_heap();
 
        $irc->yield( join => $_ ) for grep /^$channel$/i, keys %{$self->disp->channels}