Plugin/AntiAway: unregister irc.public when unloading

This commit is contained in:
Pragmatic Software 2024-07-23 11:38:16 -07:00
parent 4cf8583a1e
commit 58303f6b97
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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 {}