summaryrefslogtreecommitdiffstats
path: root/modules/command.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2008-12-22 01:42:37 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2008-12-22 01:42:37 +0000
commit48694a2b7f728acb01e9dc0d6d3ca28c7f09ede9 (patch)
treea3d5c9bc0f92bb09bfc9e8bfb8e683bc375d9903 /modules/command.pl
parentba55c0675df20a89a452162216af4b6a8e06ce5c (diff)
Committing stuff because it's been way too long.
Diffstat (limited to 'modules/command.pl')
-rw-r--r--modules/command.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/command.pl b/modules/command.pl
index 27cc5a9..07ef31e 100644
--- a/modules/command.pl
+++ b/modules/command.pl
@@ -19,9 +19,12 @@ sub command
my $cmd = $args;
my $d1;
my $nick = lc $event->{nick};
- return 0 unless (ASM::Util->speak($event->{to}->[0]));
+# return 0 unless (ASM::Util->speak($event->{to}->[0]));
foreach my $command ( @{$::commands->{command}} )
{
+ unless (ASM::Util->speak($event->{to}->[0])) {
+ next unless (defined($command->{nohush}) && ($command->{nohush} eq "nohush"));
+ }
if (defined($command->{flag})) {
next unless defined($::users->{person}->{$nick});
next unless defined($::users->{person}->{$nick}->{flags});