mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +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) {
 | 
			
		||||
    $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) {
 | 
			
		||||
 | 
			
		||||
@ -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 {}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user