From 196282db8609ea7aced4d546d11b778d6f7883f4 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 16 Jan 2016 16:47:35 -0800 Subject: [PATCH] protocols: numericServer(...) -> numeric(...) --- coreplugin.py | 2 +- docs/technical/pmodule-spec.md | 2 +- protocols/inspircd.py | 2 +- protocols/ts6_common.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coreplugin.py b/coreplugin.py index aedb809..1260565 100644 --- a/coreplugin.py +++ b/coreplugin.py @@ -39,7 +39,7 @@ def handle_whois(irc, source, command, args): log.warning('(%s) Got a WHOIS request for %r from %r, but the target ' 'doesn\'t exist in irc.users!', irc.name, target, source) return - f = irc.proto.numericServer + f = irc.proto.numeric server = irc.getServer(target) or irc.sid nick = user.nick sourceisOper = ('o', None) in irc.users[source].modes diff --git a/docs/technical/pmodule-spec.md b/docs/technical/pmodule-spec.md index b776ab9..a38e8b5 100644 --- a/docs/technical/pmodule-spec.md +++ b/docs/technical/pmodule-spec.md @@ -68,7 +68,7 @@ internals](https://github.com/GLolol/PyLink/blob/0.4.0-dev/classes.py#L267-L272) - **`notice`**`(self, source, target, text)` - Sends a NOTICE from a PyLink client. -- **`numericServer`**`(self, source, numeric, target, text)` - Sends a raw numeric `numeric` with `text` from the `source` server to `target`. +- **`numeric`**`(self, source, numeric, target, text)` - Sends a raw numeric `numeric` with `text` from the `source` server to `target`. - **`partClient`**`(self, client, channel, reason=None)` - Sends a part from a PyLink client. diff --git a/protocols/inspircd.py b/protocols/inspircd.py index fd90838..3fc1951 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -281,7 +281,7 @@ class InspIRCdProtocol(TS6BaseProtocol): if not (target is None or source is None): self._send(source, 'PING %s %s' % (source, target)) - def numericServer(self, source, numeric, target, text): + def numeric(self, source, numeric, target, text): raise NotImplementedError("Numeric sending is not yet implemented by this " "protocol module. WHOIS requests are handled " "locally by InspIRCd servers, so there is no " diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index 9abbcf6..5e5c1ec 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -36,7 +36,7 @@ class TS6BaseProtocol(Protocol): ### OUTGOING COMMANDS - def numericServer(self, source, numeric, target, text): + def numeric(self, source, numeric, target, text): """Sends raw numerics from a server to a remote client, used for WHOIS replies.""" self._send(source, '%s %s %s' % (numeric, target, text))