mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
clientbot: format kick reasons with the sender prefix
This commit is contained in:
parent
e7ae6ddbff
commit
dd0c5c7e63
@ -109,6 +109,7 @@ class ClientbotWrapperProtocol(Protocol):
|
||||
def kick(self, source, channel, target, reason=''):
|
||||
"""Sends channel kicks."""
|
||||
# TODO: handle kick failures and send rejoin hooks for the target
|
||||
reason = self._formatText(source, reason)
|
||||
self.irc.send('KICK %s %s :%s' % (channel, self._expandPUID(target), reason))
|
||||
self.part(target, channel, reason=reason)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user