From b4e5c57a35a82254a665b5dbe43a661d6668bede Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 16 Jan 2016 16:38:27 -0800 Subject: [PATCH] protocols: rename inviteClient(...) -> invite(...) --- docs/technical/pmodule-spec.md | 2 +- plugins/relay.py | 2 +- protocols/inspircd.py | 2 +- protocols/ts6.py | 2 +- protocols/unreal.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/technical/pmodule-spec.md b/docs/technical/pmodule-spec.md index 0bdc026..d7848b3 100644 --- a/docs/technical/pmodule-spec.md +++ b/docs/technical/pmodule-spec.md @@ -46,7 +46,7 @@ internals](https://github.com/GLolol/PyLink/blob/0.4.0-dev/classes.py#L267-L272) - **`awayClient`**`(self, source, text)` - Sends an AWAY message from a PyLink client. `text` can be an empty string to unset AWAY status. -- **`inviteClient`**`(self, source, target, channel)` - Sends an INVITE from a PyLink client. +- **`invite`**`(self, source, target, channel)` - Sends an INVITE from a PyLink client. - **`kickClient`**`(self, source, channel, target, reason=None)` - Sends a kick from a PyLink client. diff --git a/plugins/relay.py b/plugins/relay.py index 753ddb6..07723a2 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1026,7 +1026,7 @@ def handle_invite(irc, source, command, args): 'channel not on their network!', notice=True) else: - remoteirc.proto.inviteClient(remotesource, remoteuser, + remoteirc.proto.invite(remotesource, remoteuser, remotechan) utils.add_hook(handle_invite, 'INVITE') diff --git a/protocols/inspircd.py b/protocols/inspircd.py index ff2be4c..e4425e7 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -219,7 +219,7 @@ class InspIRCdProtocol(TS6BaseProtocol): self.irc.channels[target].topic = text self.irc.channels[target].topicset = True - def inviteClient(self, numeric, target, channel): + def invite(self, numeric, target, channel): """Sends an INVITE 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 120aa99..9571206 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -207,7 +207,7 @@ class TS6Protocol(TS6BaseProtocol): self.irc.channels[target].topic = text self.irc.channels[target].topicset = True - def inviteClient(self, numeric, target, channel): + def invite(self, numeric, target, channel): """Sends an INVITE from a PyLink client..""" if not self.irc.isInternalClient(numeric): raise LookupError('No such PyLink client exists.') diff --git a/protocols/unreal.py b/protocols/unreal.py index 81e6330..4a6ce72 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -282,7 +282,7 @@ class UnrealProtocol(TS6BaseProtocol): self.irc.callHooks([self.irc.sid, 'CHGNAME', {'target': target, 'newgecos': text}]) - def inviteClient(self, numeric, target, channel): + def invite(self, numeric, target, channel): """Sends an INVITE from a PyLink client..""" if not self.irc.isInternalClient(numeric): raise LookupError('No such PyLink client exists.')