mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +01:00
plugins, docs: update to use irc.proto.kill
This commit is contained in:
parent
eef97ac035
commit
cb467bcfdb
@ -52,9 +52,9 @@ internals](https://github.com/GLolol/PyLink/blob/0.4.0-dev/classes.py#L267-L272)
|
||||
|
||||
- **`kick`**`(self, source, channel, target, reason=None)` - Sends a kick from a PyLink server.
|
||||
|
||||
- **`killClient`**`(self, source, target, reason)` - Sends a kill from a PyLink client.
|
||||
- **`kill`**`(self, source, target, reason)` - Sends a kill from a PyLink client.
|
||||
|
||||
- **`killServer`**`(self, source, target, reason)` - Sends a kill from a PyLink server.
|
||||
- **`kill`**`(self, source, target, reason)` - Sends a kill from a PyLink server.
|
||||
|
||||
- **`knock`**`(self, source, target, text)` - Sends a KNOCK from a PyLink client.
|
||||
|
||||
|
@ -174,7 +174,7 @@ def kill(irc, source, args):
|
||||
|
||||
if irc.isInternalServer(u):
|
||||
# Send kill from server if the given kicker is a SID
|
||||
irc.proto.killServer(u, targetu, reason)
|
||||
irc.proto.kill(u, targetu, reason)
|
||||
elif u not in irc.users:
|
||||
# Whatever we were told to send the kick from wasn't valid; try to be
|
||||
# somewhat user friendly in the error. message
|
||||
@ -188,7 +188,7 @@ def kill(irc, source, args):
|
||||
irc.reply("Error: No such nick '%s'." % target)
|
||||
return
|
||||
else:
|
||||
irc.proto.killClient(u, targetu, reason)
|
||||
irc.proto.kill(u, targetu, reason)
|
||||
|
||||
irc.callHooks([u, 'CHANCMDS_KILL', {'target': targetu, 'text': reason,
|
||||
'userdata': userdata, 'parse_as': 'KILL'}])
|
||||
|
Loading…
Reference in New Issue
Block a user