diff options
| author | 2020-02-26 17:38:00 +0000 | |
|---|---|---|
| committer | 2020-02-26 17:38:00 +0000 | |
| commit | d24442587c28b9a540bca3785e7c4c9d453ee6f1 (patch) | |
| tree | 8623a6e6136d9174df4a46e22b39b7c41411248a /modules/channel_op.py | |
| parent | move accept_invite.py to core modules, default to not accepting invites bot-wide (diff) | |
| signature | ||
`prefix` can be None - null-coalesce it to empty string
Diffstat (limited to 'modules/channel_op.py')
| -rw-r--r-- | modules/channel_op.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
