don't throw when account name is null

This commit is contained in:
jesopo 2019-09-24 15:52:31 +01:00
parent 70bc244864
commit 9c591ca8dc

View file

@ -64,7 +64,7 @@ class Module(ModuleManager.BaseModule):
mask_split[i] = (s.replace("$n", user.nickname)
.replace("$u", user.username)
.replace("$h", user.hostname)
.replace("$a", user.get_identified_account()))
.replace("$a", user.get_identified_account() or ""))
return "$".join(mask_split)
def _get_hostmask(self, channel, user):
if not user.get_identified_account() == None: