]> ruin.nu Git - NDIRC.git/commitdiff
Hide warning
authorMichael Andreen <harv@ruin.nu>
Fri, 8 Jan 2010 01:29:26 +0000 (02:29 +0100)
committerMichael Andreen <harv@ruin.nu>
Fri, 8 Jan 2010 01:29:26 +0000 (02:29 +0100)
Dispatcher.pm

index 7dce09838c4f28e954babec1e81ac32c6796f960..6705349b8081b4da430edc43ee3e48d12adf0217 100644 (file)
@@ -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};