summaryrefslogtreecommitdiffstats
path: root/modules/log.pl
diff options
context:
space:
mode:
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;