summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Commander.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ASM/Commander.pm')
-rw-r--r--lib/ASM/Commander.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm
index 707d1ef..f0911fe 100644
--- a/lib/ASM/Commander.pm
+++ b/lib/ASM/Commander.pm
@@ -189,7 +189,11 @@ sub command {
}
}
if ($cmd=~/$command/) {
- ASM::Util->dprint("$event->{from} told me: $cmd", "commander");
+ my $where = $event->{to}[0];
+ if ($where !~ /#/) {
+ $where = 'PM';
+ }
+ ASM::Util->dprint("$event->{from} told me in $where: $cmd", "commander");
if (!ASM::Util->notRestricted($nick, "nocommands")) {
$fail = 1;
}