diff options
| author | 2008-12-22 01:42:37 +0000 | |
|---|---|---|
| committer | 2008-12-22 01:42:37 +0000 | |
| commit | 48694a2b7f728acb01e9dc0d6d3ca28c7f09ede9 (patch) | |
| tree | a3d5c9bc0f92bb09bfc9e8bfb8e683bc375d9903 /modules/command.pl | |
| parent | ba55c0675df20a89a452162216af4b6a8e06ce5c (diff) | |
Committing stuff because it's been way too long.
Diffstat (limited to 'modules/command.pl')
| -rw-r--r-- | modules/command.pl | 5 |
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}); |
