3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

plugins, docs: update to use irc.proto.kill

This commit is contained in:
James Lu 2016-01-16 17:03:58 -08:00
parent eef97ac035
commit cb467bcfdb
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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'}])