diff options
author | Janik Kleinhoff <ilbelkyr@shalture.org> | 2016-02-15 21:46:14 +0000 |
---|---|---|
committer | Janik Kleinhoff <ilbelkyr@shalture.org> | 2016-02-15 21:46:14 +0000 |
commit | e9383d0aaf0e4faedd131fbfc831e928fe189774 (patch) | |
tree | 19502aa8102a4666e02b87c8e44c609f229f5246 | |
parent | 5b1fd3785f66727466dda4cc00168956bc43d254 (diff) | |
download | antispammeta-e9383d0aaf0e4faedd131fbfc831e928fe189774.tar.bz2 antispammeta-e9383d0aaf0e4faedd131fbfc831e928fe189774.tar.xz antispammeta-e9383d0aaf0e4faedd131fbfc831e928fe189774.tar.zst |
fix commands
-rw-r--r-- | lib/ASM/Commander.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |