From ae0f56cd5882df69c42fca0f53ad1def149d9c8c Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 18 Jun 2015 10:34:02 -0500 Subject: [PATCH] seen: this shouldn't do anything w/privmsg --- dr_botzo/seen/ircplugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dr_botzo/seen/ircplugin.py b/dr_botzo/seen/ircplugin.py index f8fe5bd..61040fa 100644 --- a/dr_botzo/seen/ircplugin.py +++ b/dr_botzo/seen/ircplugin.py @@ -21,9 +21,8 @@ class Seen(Plugin): """Hook handler functions into the IRC library.""" self.connection.add_global_handler('pubmsg', self.handle_seeing) - self.connection.add_global_handler('privmsg', self.handle_seeing) - self.connection.reactor.add_global_regex_handler(['pubmsg', 'privmsg'], r'^!seen\s+(\S+)$', self.handle_seen) + self.connection.reactor.add_global_regex_handler(['pubmsg'], r'^!seen\s+(\S+)$', self.handle_seen) super(Seen, self).start() @@ -31,9 +30,8 @@ class Seen(Plugin): """Unhook handler functions into the IRC library.""" self.connection.remove_global_handler('pubmsg', self.handle_seeing) - self.connection.remove_global_handler('privmsg', self.handle_seeing) - self.connection.reactor.remove_global_regex_handler(['pubmsg', 'privmsg'], self.handle_seen) + self.connection.reactor.remove_global_regex_handler(['pubmsg'], self.handle_seen) super(Seen, self).stop()