From 67098c34bbc32d595a145c21bb8046c92b452d92 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 15 May 2015 17:36:51 -0500 Subject: [PATCH] ircmgmt: unregister handle_quit --- dr_botzo/ircbot/ircplugins/ircmgmt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr_botzo/ircbot/ircplugins/ircmgmt.py b/dr_botzo/ircbot/ircplugins/ircmgmt.py index 40e8a40..7c7bbf6 100644 --- a/dr_botzo/ircbot/ircplugins/ircmgmt.py +++ b/dr_botzo/ircbot/ircplugins/ircmgmt.py @@ -40,6 +40,9 @@ class ChannelManagement(Plugin): self.connection.reactor.remove_global_regex_handler('pubmsg', getattr(self, 'handle_part')) self.connection.reactor.remove_global_regex_handler('privmsg', getattr(self, 'handle_part')) + self.connection.reactor.remove_global_regex_handler('pubmsg', getattr(self, 'handle_quit')) + self.connection.reactor.remove_global_regex_handler('privmsg', getattr(self, 'handle_quit')) + super(ChannelManagement, self).stop() def handle_join(self, connection, event, match):