From 5b1fd3785f66727466dda4cc00168956bc43d254 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Sun, 14 Feb 2016 06:30:36 +0000 Subject: ASM::Commander: print where a command was received --- lib/ASM/Commander.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3