From d9efbedb1f873e584e6ef43475ac896b2a49a050 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 8 Jan 2010 02:29:26 +0100 Subject: [PATCH] Hide warning --- Dispatcher.pm | 1 + 1 file changed, 1 insertion(+) 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}; -- 2.39.2