kick bitbot last if he's covered by !kick/!kickban

This commit is contained in:
jesopo 2020-02-26 17:15:35 +00:00
parent 6c5258d037
commit e485632359

View file

@ -356,6 +356,12 @@ class Module(ModuleManager.BaseModule):
users = target[1] users = target[1]
elif target[0] == "cuser": elif target[0] == "cuser":
users = [target[1]] 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) self._kick(server, channel, [u.nickname for u in users], reason)
@utils.hook("received.command.kick") @utils.hook("received.command.kick")