Fix bug with using muser attribute when absent

master
Mark Veidemanis 4 years ago
parent 5d09e1ade7
commit a0bea0b18a

@ -221,6 +221,7 @@ class IRCBot(IRCClient):
# expand out the hostmask
if not {"nick", "ident", "host"}.issubset(set(cast.keys())):
if "muser" in cast.keys():
cast["nick"], cast["ident"], cast["host"] = parsen(cast["muser"])
# handle ZNC stuff

@ -18,6 +18,7 @@ def parsemeta(numName, c):
# need to check if this was received from a relay
# in which case, do not do this
if c["type"] in ["msg", "notice", "action", "topic", "mode"]:
if "muser" in c.keys():
userinfo.editUser(c["net"], c["muser"])
#if c["type"] == "mode":
# userinfo.updateMode(c)

Loading…
Cancel
Save