mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
protocols: rename inviteClient(...) -> invite(...)
This commit is contained in:
parent
acdd7dbb78
commit
b4e5c57a35
@ -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.
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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.')
|
||||
|
@ -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.')
|
||||
|
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user