From dcfe07d7c99f212037323a8bddb23ec764535cce Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 6 Jul 2021 18:43:14 -0700 Subject: [PATCH] Users: return a value for IRC event handlers --- PBot/Users.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PBot/Users.pm b/PBot/Users.pm index 4e874ade..6856ae63 100644 --- a/PBot/Users.pm +++ b/PBot/Users.pm @@ -87,6 +87,7 @@ sub on_departure { my ($nick, $user, $host, $channel) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->to); ($nick, $user, $host) = $self->{pbot}->{irchandlers}->normalize_hostmask($nick, $user, $host); $self->decache_user($channel, "$nick!$user\@$host"); + return 0; } sub on_kick { @@ -94,11 +95,13 @@ sub on_kick { my ($nick, $user, $host, $channel) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->{args}[0]); ($nick, $user, $host) = $self->{pbot}->{irchandlers}->normalize_hostmask($nick, $user, $host); $self->decache_user($channel, "$nick!$user\@$host"); + return 0; } sub on_self_part { my ($self, $event_type, $event) = @_; delete $self->{user_cache}->{lc $event->{channel}}; + return 0; } sub cmd_login {