Get more information from kick and nick commands

This commit is contained in:
Mark Veidemanis 2017-12-28 18:46:17 +00:00
parent 34d5468672
commit 97cc80f3b8
1 changed files with 8 additions and 0 deletions

View File

@ -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)