X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Dispatcher.pm;h=6705349b8081b4da430edc43ee3e48d12adf0217;hp=7dce09838c4f28e954babec1e81ac32c6796f960;hb=d9efbedb1f873e584e6ef43475ac896b2a49a050;hpb=741af182c0359e3b9be3848a772750b2642428a9 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};