From 48694a2b7f728acb01e9dc0d6d3ca28c7f09ede9 Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Mon, 22 Dec 2008 01:42:37 +0000 Subject: Committing stuff because it's been way too long. --- modules/command.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/command.pl') 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}); -- cgit v1.2.3