diff --git a/docs/technical/pmodule-spec.md b/docs/technical/pmodule-spec.md index 444bccb..a321c82 100644 --- a/docs/technical/pmodule-spec.md +++ b/docs/technical/pmodule-spec.md @@ -56,7 +56,7 @@ internals](https://github.com/GLolol/PyLink/blob/0.4.0-dev/classes.py#L267-L272) - **`killServer`**`(self, source, target, reason)` - Sends a kill from a PyLink server. -- **`knockClient`**`(self, source, target, text)` - Sends a KNOCK from a PyLink client. +- **`knock`**`(self, source, target, text)` - Sends a KNOCK from a PyLink client. - **`messageClient`**`(self, source, target, text)` - Sends a PRIVMSG from a PyLink client. diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 7cb5524..fd90838 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -225,7 +225,7 @@ class InspIRCdProtocol(TS6BaseProtocol): raise LookupError('No such PyLink client exists.') self._send(numeric, 'INVITE %s %s' % (target, channel)) - def knockClient(self, numeric, target, text): + def knock(self, numeric, target, text): """Sends a KNOCK from a PyLink client.""" if not self.irc.isInternalClient(numeric): raise LookupError('No such PyLink client exists.') diff --git a/protocols/ts6.py b/protocols/ts6.py index 9571206..a7e25ea 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -213,10 +213,10 @@ class TS6Protocol(TS6BaseProtocol): raise LookupError('No such PyLink client exists.') self._send(numeric, 'INVITE %s %s %s' % (target, channel, self.irc.channels[channel].ts)) - def knockClient(self, numeric, target, text): + def knock(self, numeric, target, text): """Sends a KNOCK from a PyLink client.""" if 'KNOCK' not in self.irc.caps: - log.debug('(%s) knockClient: Dropping KNOCK to %r since the IRCd ' + log.debug('(%s) knock: Dropping KNOCK to %r since the IRCd ' 'doesn\'t support it.', self.irc.name, target) return if not self.irc.isInternalClient(numeric): diff --git a/protocols/unreal.py b/protocols/unreal.py index 4a6ce72..1ffed57 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -288,7 +288,7 @@ class UnrealProtocol(TS6BaseProtocol): raise LookupError('No such PyLink client exists.') self._send(numeric, 'INVITE %s %s' % (target, channel)) - def knockClient(self, numeric, target, text): + def knock(self, numeric, target, text): """Sends a KNOCK from a PyLink client.""" # KNOCKs in UnrealIRCd are actually just specially formatted NOTICEs, # sent to all ops in a channel.