From 9c591ca8dcfc0aa152bdba96613059a8a26aa3a7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 24 Sep 2019 15:52:31 +0100 Subject: don't throw when account name is null --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/channel_op.py') 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: -- cgit v1.3.1-10-gc9f91