aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-24 15:52:31 +0100
committerGravatar jesopo2019-09-24 15:52:31 +0100
commit9c591ca8dcfc0aa152bdba96613059a8a26aa3a7 (patch)
tree50d7e074eca3921a3a0facea9b41e1c407d6e200 /modules
parentswitch ban-format-account from a serverset to channelset (diff)
signature
don't throw when account name is null
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_op.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index 1981bb87..31fd773b 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -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: