From 97cc80f3b8d753ad67bf91632c0408a834299aab Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 28 Dec 2017 18:46:17 +0000 Subject: [PATCH] Get more information from kick and nick commands --- threshold | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/threshold b/threshold index 6dd3720..9dc202a 100755 --- a/threshold +++ b/threshold @@ -217,8 +217,16 @@ class IRCBot(IRCClient): helper.actKeyword(user, None, quitMessage, self.nickname, "QUT", self.name) def userKicked(self, kickee, channel, kicker, message): + nick, ident, host = self.parsen(kicker) + helper.setWhoSingle(self.name, nick, ident, host) + helper.actKeyword(kicker, channel, message, self.nickname, "KCK", self.name) + def userRenamed(self, oldname, newname): + nick, ident, host = self.parsen(oldname) + helper.setWhoSingle(self.name, nick, ident, host) + helper.setWhoSingle(self.name, newname, ident, host) + def topicUpdated(self, user, channel, newTopic): nick, ident, host = self.parsen(user) helper.setWhoSingle(self.name, nick, ident, host)