diff options
| author | 2015-03-07 01:45:14 +0400 | |
|---|---|---|
| committer | 2015-03-07 01:45:14 +0400 | |
| commit | 1fd649a552dbd8910bb79f83163f4a4fdf832d65 (patch) | |
| tree | 67fb0c99fec8e3841eacde66ef87f8a7ffc20bf3 /modules/log.pl | |
| parent | 0015ac246c75892fa43183e30396031e732a3a48 (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.pl | 4 |
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; |
