From 1fd649a552dbd8910bb79f83163f4a4fdf832d65 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Sat, 7 Mar 2015 01:45:14 +0400 Subject: Add some checks for STATUSMSG prefixes on channels This un-breaks /msg +#channel hi, mostly. --- modules/log.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/log.pl') diff --git a/modules/log.pl b/modules/log.pl index 72e0972..c2a2b72 100644 --- a/modules/log.pl +++ b/modules/log.pl @@ -60,9 +60,7 @@ sub logg { $chan = lc $chan; next if ($chan eq '$$*'); - if (substr($chan, 0, 1) eq '@') { - $chan = substr($chan, 1); - } + $chan =~ s/^[@+]//; if ($chan eq '*') { ASM::Util->dprint("$event->{nick}: $event->{args}->[0]", 'snotice'); next; -- cgit v1.2.3