summaryrefslogtreecommitdiffstats
path: root/modules/log.pl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/log.pl')
-rw-r--r--modules/log.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/log.pl b/modules/log.pl
index e8a178a..6f25c48 100644
--- a/modules/log.pl
+++ b/modules/log.pl
@@ -27,6 +27,9 @@ sub logg
foreach my $chan ( @chans )
{
$chan = lc $chan;
+ if (substr($chan, 0, 1) eq '@') {
+ $chan = substr($chan, 1);
+ }
my $path = ">>$cfg->{dir}${chan}/${chan}" . strftime($cfg->{filefmt}, @time);
$_ = '';
$_ = "<$event->{nick}> $event->{args}->[0]" if $event->{type} eq 'public';