From b0ee58970205cb0d837b6a0208816a0d7807bec1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 5 Dec 2015 21:29:07 +0000 Subject: [PATCH] Seen: Fix handling of MODE and TOPIC. --- plugins/Seen/plugin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/Seen/plugin.py b/plugins/Seen/plugin.py index 7d8a958ae..11209f3f8 100644 --- a/plugins/Seen/plugin.py +++ b/plugins/Seen/plugin.py @@ -164,7 +164,15 @@ class Seen(callbacks.Plugin): def doMode(self, irc, msg): # Filter out messages from network Services if msg.nick: - self.doQuit(irc, msg) + try: + id = ircdb.users.getUserId(msg.prefix) + except KeyError: + id = None # Not in the database. + channel = msg.args[0] + said = ircmsgs.prettyPrint(msg) + self.anydb.update(channel, msg.nick, said) + if id is not None: + self.anydb.update(channel, id, said) doTopic = doMode def _seen(self, irc, channel, name, any=False):