mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 23:54:08 +01:00
ts6: fix removeClient usage
This commit is contained in:
parent
4e2876104f
commit
a9253eda77
@ -183,7 +183,7 @@ class TS6Protocol(TS6BaseProtocol):
|
||||
|
||||
assert target in self.irc.users, "Unknown target %r for killServer!" % target
|
||||
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
||||
removeClient(self.irc, target)
|
||||
self.removeClient(target)
|
||||
|
||||
def killClient(self, numeric, target, reason):
|
||||
"""Sends a kill from a PyLink client."""
|
||||
@ -191,7 +191,7 @@ class TS6Protocol(TS6BaseProtocol):
|
||||
raise LookupError('No such PyLink PseudoClient exists.')
|
||||
assert target in self.irc.users, "Unknown target %r for killClient!" % target
|
||||
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
||||
removeClient(self.irc, target)
|
||||
self.removeClient(target)
|
||||
|
||||
def topicServer(self, numeric, target, text):
|
||||
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
||||
|
Loading…
Reference in New Issue
Block a user