diff options
| author | 2015-09-04 04:11:10 +0000 | |
|---|---|---|
| committer | 2015-09-04 04:11:10 +0000 | |
| commit | b93c3a24f14e0f64bc46b4945a65ae1bba62dc12 (patch) | |
| tree | ea4f206414701709773c05879fb7ed7298dfa002 | |
| parent | acdcedfa7099659be22df3dd57ec4926809dc1a6 (diff) | |
on_nick: pass the inspector an event with the *new* nick
| -rw-r--r-- | modules/event.pl | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
