From 58303f6b97cae77e16a7e8f39227b66481181a3e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 23 Jul 2024 11:38:16 -0700 Subject: [PATCH] Plugin/AntiAway: unregister irc.public when unloading --- lib/PBot/Plugin/AntiAway.pm | 1 + lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PBot/Plugin/AntiAway.pm b/lib/PBot/Plugin/AntiAway.pm index 1009aa47..ddbacd58 100644 --- a/lib/PBot/Plugin/AntiAway.pm +++ b/lib/PBot/Plugin/AntiAway.pm @@ -28,6 +28,7 @@ sub initialize($self, %conf) { sub unload($self) { $self->{pbot}->{event_dispatcher}->remove_handler('irc.nick'); $self->{pbot}->{event_dispatcher}->remove_handler('irc.caction'); + $self->{pbot}->{event_dispatcher}->remove_handler('irc.public'); } sub punish($self, $msg, $channel, $nick, $user, $host) { diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 4418f6bb..223105a7 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4772, - BUILD_DATE => "2024-07-22", + BUILD_REVISION => 4773, + BUILD_DATE => "2024-07-23", }; sub initialize {}