X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Bot.pm;h=1200424a94cfba04219b6415cc1dfd685ce222e2;hp=c90f8339d0d061e6009c10c5dd88ac6729ed8860;hb=84affcdf70684e8f29e83dc2c3ab75520da383d7;hpb=3494b00f46396cfe17a7ab19de2385eb2b4df2c8 diff --git a/Bot.pm b/Bot.pm index c90f833..1200424 100644 --- 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";