prefix can be None - null-coalesce it to empty string

This commit is contained in:
jesopo 2020-02-26 17:38:00 +00:00
parent 02e734824f
commit d24442587c

View file

@ -407,7 +407,7 @@ class Module(ModuleManager.BaseModule):
args = [u.account for u in users if not u.account == None] args = [u.account for u in users if not u.account == None]
if args: 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) spec[0].send_modes(args, True)
if not spec[1] == None: if not spec[1] == None: