From e9383d0aaf0e4faedd131fbfc831e928fe189774 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Mon, 15 Feb 2016 21:46:14 +0000 Subject: fix commands --- lib/ASM/Commander.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm index f0911fe..a0a5179 100644 --- a/lib/ASM/Commander.pm +++ b/lib/ASM/Commander.pm @@ -190,7 +190,7 @@ sub command { } if ($cmd=~/$command/) { my $where = $event->{to}[0]; - if ($where !~ /#/) { + if (index($where, '#') == -1) { $where = 'PM'; } ASM::Util->dprint("$event->{from} told me in $where: $cmd", "commander"); -- cgit v1.2.3