summaryrefslogtreecommitdiffstats
path: root/modules/command.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-11-25 21:33:40 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-11-25 21:33:40 +0000
commit0293b9d684ce2f89a1850b7a0d4819bdd1c947ef (patch)
treec7ea8fc9bd40b46797ba690ebe7b4066c178518d /modules/command.pl
parent917638dfdf31e26ae9115dabb5c2fe528866c549 (diff)
better logging, better flood detection, command ignoring
Diffstat (limited to 'modules/command.pl')
-rw-r--r--modules/command.pl1
1 files changed, 1 insertions, 0 deletions
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})) {