diff options
| author | 2013-10-23 17:40:15 +0000 | |
|---|---|---|
| committer | 2013-10-23 17:40:15 +0000 | |
| commit | bbb625fbd7ee5ebb2e3e2564b3c7117f08200e7d (patch) | |
| tree | 8ab67260025801c3d6fec83b30b61e8ae8332337 /modules/log.pl | |
| parent | 5239387031d9426a2001187789d4ae6a87dbd966 (diff) | |
all sorts of stuff changed. This is just one big code package update
Diffstat (limited to 'modules/log.pl')
| -rw-r--r-- | modules/log.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/log.pl b/modules/log.pl index bdf4821..fe92159 100644 --- a/modules/log.pl +++ b/modules/log.pl @@ -41,9 +41,8 @@ sub sqlIncident open(FH, '>', $self->{CONFIG}->{actiondir} . $index . '.txt'); foreach my $chan (@chans) { if (defined($self->{backlog}->{$chan})) { - print FH "$chan\n"; - print FH join('', @{$self->{backlog}->{$chan}}); - print FH "\n"; + say FH "$chan"; + say FH join('', @{$self->{backlog}->{$chan}}); } } close(FH); @@ -95,13 +94,14 @@ sub logg } else { print "COULDN'T PRINT TO $path - $line"; } + my $spy; if (defined($::spy{$chan})) { - my $spy = $::spy{$chan}; - print $spy $chan .": " . $nostamp . "\n"; + $spy = $::spy{$chan}; + } elsif (defined($::spy{lc $event->{nick}})) { + $spy = $::spy{lc $event->{nick}}; } - if (defined($::spy{lc $event->{nick}})) { - my $spy = $::spy{lc $event->{nick}}; - print $spy $chan .": " . $nostamp . "\n"; + if (defined($spy)) { + say $spy "$chan: $nostamp"; } # $_ >> io($path); } |
