From d24442587c28b9a540bca3785e7c4c9d453ee6f1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Feb 2020 17:38:00 +0000 Subject: `prefix` can be None - null-coalesce it to empty string --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/channel_op.py b/modules/channel_op.py index 297b09b7..e7ab7bc9 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -407,7 +407,7 @@ class Module(ModuleManager.BaseModule): args = [u.account for u in users if not u.account == None] if args: - args = [(mode, "%s%s" % (prefix, a)) for a in args] + args = [(mode, "%s%s" % (prefix or "", a)) for a in args] spec[0].send_modes(args, True) if not spec[1] == None: -- cgit v1.3.1-10-gc9f91