summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Inspect.pm
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-14 16:11:04 -0700
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2016-01-14 16:11:04 -0700
commit0f0d4c4209a902a252fc6e764c7bacf158b12954 (patch)
treeb09ccc84bbdfbbd42e9021fc9d911d176d9e7e8f /lib/ASM/Inspect.pm
parent037bc83e73761411214d3963c3c17c77a853dd11 (diff)
Move channel logging hooks into the logging module, rather than calling them from the event module.
Diffstat (limited to 'lib/ASM/Inspect.pm')
-rw-r--r--lib/ASM/Inspect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Inspect.pm b/lib/ASM/Inspect.pm
index 9f27100..f351e1f 100644
--- a/lib/ASM/Inspect.pm
+++ b/lib/ASM/Inspect.pm
@@ -23,7 +23,7 @@ sub inspect {
my (@dnsbl, @uniq);
my ($match, $txtz, $iaddr);
my @override = [];
- my $nick = lc $event->{nick};
+ my $nick = ($event->{type} eq 'nick') ? $event->{args}->[0] : lc $event->{nick};
my $xresult;
return if (index($nick, ".") != -1);
if ( $event->{type} eq 'join' ) {