From 0293b9d684ce2f89a1850b7a0d4819bdd1c947ef Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Sun, 25 Nov 2007 21:33:40 +0000 Subject: better logging, better flood detection, command ignoring --- modules/command.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/command.pl') diff --git a/modules/command.pl b/modules/command.pl index 04f1d90..27cc5a9 100644 --- a/modules/command.pl +++ b/modules/command.pl @@ -19,6 +19,7 @@ sub command my $cmd = $args; my $d1; my $nick = lc $event->{nick}; + return 0 unless (ASM::Util->speak($event->{to}->[0])); foreach my $command ( @{$::commands->{command}} ) { if (defined($command->{flag})) { -- cgit v1.2.3