diff --git a/docs/technical/pmodule-spec.md b/docs/technical/pmodule-spec.md index f9a7c77..73c2900 100644 --- a/docs/technical/pmodule-spec.md +++ b/docs/technical/pmodule-spec.md @@ -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. diff --git a/plugins/opercmds.py b/plugins/opercmds.py index f97eabc..2c7d80e 100644 --- a/plugins/opercmds.py +++ b/plugins/opercmds.py @@ -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'}])