From b93c3a24f14e0f64bc46b4945a65ae1bba62dc12 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Fri, 4 Sep 2015 04:11:10 +0000 Subject: on_nick: pass the inspector an event with the *new* nick --- modules/event.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/event.pl') diff --git a/modules/event.pl b/modules/event.pl index b8dd159..e6f4c23 100644 --- a/modules/event.pl +++ b/modules/event.pl @@ -509,6 +509,10 @@ sub on_nick { delete( $::sn{$oldnick}) if ($oldnick ne $newnick); $event->{to} = \@channels; $::log->logg($event); + # Well, the nick change actually was done from the old nick ... but + # by the time we process it, they already changed nicks. Therefore + # we'll pretend it's the *new* nick that generated the event. + $event->{nick} = $event->{args}[0]; $::inspector->inspect($conn, $event); } -- cgit v1.2.3