summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ASM/Commander.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm
index dee2633..b64103a 100644
--- a/lib/ASM/Commander.pm
+++ b/lib/ASM/Commander.pm
@@ -373,6 +373,10 @@ sub cmd_suppress {
my $chan = lc $1;
my $old = $::channels->{channel}->{$chan}->{monitor};
+ if ($old eq 'no') {
+ $conn->privmsg($event->replyto, "$chan is not currently monitored");
+ return;
+ }
$::channels->{channel}->{$chan}->{monitor} = "no";
$conn->schedule(30*60, sub {
$::channels->{channel}->{$chan}->{monitor} = $old;