diff options
| author | 2020-02-26 17:15:35 +0000 | |
|---|---|---|
| committer | 2020-02-26 17:15:35 +0000 | |
| commit | e48563235990f1c809f9c3d6dbb9617bcd40abda (patch) | |
| tree | 141ad8291b6de4ae5d18c494f8e7741a7e5d4dce /modules/channel_op.py | |
| parent | v1.19.0-rc1 (diff) | |
| signature | ||
kick bitbot last if he's covered by !kick/!kickban
Diffstat (limited to 'modules/channel_op.py')
| -rw-r--r-- | modules/channel_op.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index 7456990c..297b09b7 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -356,6 +356,12 @@ class Module(ModuleManager.BaseModule): users = target[1] elif target[0] == "cuser": users = [target[1]] + + for i, user in enumerate(users): + if server.is_own_nickname(user.nickname): + users.append(users.pop(i)) + break + self._kick(server, channel, [u.nickname for u in users], reason) @utils.hook("received.command.kick") |
