mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-05 22:27:24 +02: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
|
assert target in self.irc.users, "Unknown target %r for killServer!" % target
|
||||||
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
||||||
removeClient(self.irc, target)
|
self.removeClient(target)
|
||||||
|
|
||||||
def killClient(self, numeric, target, reason):
|
def killClient(self, numeric, target, reason):
|
||||||
"""Sends a kill from a PyLink client."""
|
"""Sends a kill from a PyLink client."""
|
||||||
@ -191,7 +191,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
raise LookupError('No such PyLink PseudoClient exists.')
|
raise LookupError('No such PyLink PseudoClient exists.')
|
||||||
assert target in self.irc.users, "Unknown target %r for killClient!" % target
|
assert target in self.irc.users, "Unknown target %r for killClient!" % target
|
||||||
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
self._send(numeric, 'KILL %s :Killed (%s)' % (target, reason))
|
||||||
removeClient(self.irc, target)
|
self.removeClient(target)
|
||||||
|
|
||||||
def topicServer(self, numeric, target, text):
|
def topicServer(self, numeric, target, text):
|
||||||
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user