summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Log.pm
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-09-30 00:02:48 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-09-30 00:02:48 +0000
commite3e5402155786931fffd78e71bb2a7324a677ff0 (patch)
tree0a98f8edb5244cb92e74a551d48146ebb22136d8 /lib/ASM/Log.pm
parent52e12905e5b39e5a39999dcebf02e91615e99ef8 (diff)
Remove invasive logging functionality
This removes the ;nicks and ;explain commands. Actionlogs and alertlogs are untouched for now. Cf. T8 for motivation.
Diffstat (limited to 'lib/ASM/Log.pm')
-rw-r--r--lib/ASM/Log.pm17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/ASM/Log.pm b/lib/ASM/Log.pm
index adeb4f2..46bda4c 100644
--- a/lib/ASM/Log.pm
+++ b/lib/ASM/Log.pm
@@ -108,23 +108,6 @@ sub logg
}
push @backlog, $line;
$self->{backlog}->{$chan} = \@backlog;
- if (open(FH, $path)) { # or die "Can't open $path: $!";
- print FH $line;
- ASM::Util->dprint($line, 'logger');
- close(FH);
- } else {
- print "COULDN'T PRINT TO $path - $line";
- }
- my $spy;
- my $nick = lc $event->{nick};
- if (defined($::spy{$chan})) {
- $spy = $::spy{$chan};
- } elsif (defined($::spy{$nick})) {
- $spy = $::spy{$nick};
- }
- if (defined($spy)) {
- say $spy "$chan: $nostamp";
- }
}
}