X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Dispatcher.pm;h=6705349b8081b4da430edc43ee3e48d12adf0217;hb=48c2e7d852234548bdce239b4441b7a98de408a2;hp=7dce09838c4f28e954babec1e81ac32c6796f960;hpb=17aabe51d5b62ae4bcae5ec3b02757ab5aa65b77;p=NDIRC.git diff --git a/Dispatcher.pm b/Dispatcher.pm index 7dce098..6705349 100644 --- a/Dispatcher.pm +++ b/Dispatcher.pm @@ -99,6 +99,7 @@ sub has_command { my ($self,$command,$channel) = @_; $channel = lc $channel; + return 0 unless defined $command && defined $channel; return 0 unless exists $self->commands->{$command}; return 0 unless exists $self->channels->{$channel};