Fix bug with using muser attribute when absent

This commit is contained in:
2020-11-01 19:03:56 +00:00
parent c10274ccd6
commit cb21ad8fca
2 changed files with 4 additions and 2 deletions

View File

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