mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-22 10:04:36 +01:00
Plugin/AntiAway: unregister irc.public when unloading
This commit is contained in:
parent
4cf8583a1e
commit
58303f6b97
@ -28,6 +28,7 @@ sub initialize($self, %conf) {
|
|||||||
sub unload($self) {
|
sub unload($self) {
|
||||||
$self->{pbot}->{event_dispatcher}->remove_handler('irc.nick');
|
$self->{pbot}->{event_dispatcher}->remove_handler('irc.nick');
|
||||||
$self->{pbot}->{event_dispatcher}->remove_handler('irc.caction');
|
$self->{pbot}->{event_dispatcher}->remove_handler('irc.caction');
|
||||||
|
$self->{pbot}->{event_dispatcher}->remove_handler('irc.public');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub punish($self, $msg, $channel, $nick, $user, $host) {
|
sub punish($self, $msg, $channel, $nick, $user, $host) {
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4772,
|
BUILD_REVISION => 4773,
|
||||||
BUILD_DATE => "2024-07-22",
|
BUILD_DATE => "2024-07-23",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user