Handle nick changes
This commit is contained in:
parent
5ae91f4b26
commit
1242aed9b3
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -321,6 +321,10 @@ class bot:
|
||||||
)
|
)
|
||||||
self.msg(f"[QUOTE] {sel}", chan)
|
self.msg(f"[QUOTE] {sel}", chan)
|
||||||
mm.close()
|
mm.close()
|
||||||
|
elif action == "NICK":
|
||||||
|
name = ircmsg.split("!", 1)[0][1:]
|
||||||
|
if name == self.nick:
|
||||||
|
self.nick = ircmsg.split("NICK", 1)[1].split(":", 1)[1].strip()
|
||||||
else:
|
else:
|
||||||
if ircmsg.startswith("PING "):
|
if ircmsg.startswith("PING "):
|
||||||
self.ping(ircmsg)
|
self.ping(ircmsg)
|
||||||
|
|
Loading…
Reference in a new issue