summaryrefslogtreecommitdiffstats
path: root/modules/log.pl
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-07 01:45:14 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-07 01:45:14 +0400
commit1fd649a552dbd8910bb79f83163f4a4fdf832d65 (patch)
tree67fb0c99fec8e3841eacde66ef87f8a7ffc20bf3 /modules/log.pl
parent0015ac246c75892fa43183e30396031e732a3a48 (diff)
Add some checks for STATUSMSG prefixes on channels
This un-breaks /msg +#channel hi, mostly.
Diffstat (limited to 'modules/log.pl')
-rw-r--r--modules/log.pl4
1 files changed, 1 insertions, 3 deletions
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;