mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
protocols: reword spawnClient description text
This commit is contained in:
parent
f8c2ee3ed3
commit
40a86de040
@ -92,9 +92,12 @@ class HybridProtocol(TS6Protocol):
|
|||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype=None,
|
server=None, ip='0.0.0.0', realname=None, ts=None, opertype=None,
|
||||||
manipulatable=False):
|
manipulatable=False):
|
||||||
"""Spawns a client with the given options.
|
"""
|
||||||
|
Spawns a new client with the given options.
|
||||||
|
|
||||||
Note: No nick collision / valid nickname checks are done here; it is
|
Note: No nick collision / valid nickname checks are done here; it is
|
||||||
up to plugins to make sure they don't introduce anything invalid."""
|
up to plugins to make sure they don't introduce anything invalid.
|
||||||
|
"""
|
||||||
|
|
||||||
server = server or self.irc.sid
|
server = server or self.irc.sid
|
||||||
if not self.irc.isInternalServer(server):
|
if not self.irc.isInternalServer(server):
|
||||||
|
@ -39,10 +39,12 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
||||||
manipulatable=False):
|
manipulatable=False):
|
||||||
"""Spawns a client with nick <nick> on the given IRC connection.
|
"""
|
||||||
|
Spawns a new client with the given options.
|
||||||
|
|
||||||
Note: No nick collision / valid nickname checks are done here; it is
|
Note: No nick collision / valid nickname checks are done here; it is
|
||||||
up to plugins to make sure they don't introduce anything invalid."""
|
up to plugins to make sure they don't introduce anything invalid.
|
||||||
|
"""
|
||||||
server = server or self.irc.sid
|
server = server or self.irc.sid
|
||||||
|
|
||||||
if not self.irc.isInternalServer(server):
|
if not self.irc.isInternalServer(server):
|
||||||
|
@ -232,6 +232,12 @@ class P10Protocol(Protocol):
|
|||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
||||||
manipulatable=False):
|
manipulatable=False):
|
||||||
|
"""
|
||||||
|
Spawns a new client with the given options.
|
||||||
|
|
||||||
|
Note: No nick collision / valid nickname checks are done here; it is
|
||||||
|
up to plugins to make sure they don't introduce anything invalid.
|
||||||
|
"""
|
||||||
# {7N} *** NICK
|
# {7N} *** NICK
|
||||||
# 1 <nickname>
|
# 1 <nickname>
|
||||||
# 2 <hops>
|
# 2 <hops>
|
||||||
|
@ -31,10 +31,12 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
||||||
manipulatable=False):
|
manipulatable=False):
|
||||||
"""Spawns a client with nick <nick> on the given IRC connection.
|
"""
|
||||||
|
Spawns a new client with the given options.
|
||||||
|
|
||||||
Note: No nick collision / valid nickname checks are done here; it is
|
Note: No nick collision / valid nickname checks are done here; it is
|
||||||
up to plugins to make sure they don't introduce anything invalid."""
|
up to plugins to make sure they don't introduce anything invalid.
|
||||||
|
"""
|
||||||
server = server or self.irc.sid
|
server = server or self.irc.sid
|
||||||
|
|
||||||
if not self.irc.isInternalServer(server):
|
if not self.irc.isInternalServer(server):
|
||||||
|
@ -63,10 +63,12 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
||||||
manipulatable=False):
|
manipulatable=False):
|
||||||
"""Spawns a client with nick <nick> on the given IRC connection.
|
"""
|
||||||
|
Spawns a new client with the given options.
|
||||||
|
|
||||||
Note: No nick collision / valid nickname checks are done here; it is
|
Note: No nick collision / valid nickname checks are done here; it is
|
||||||
up to plugins to make sure they don't introduce anything invalid."""
|
up to plugins to make sure they don't introduce anything invalid.
|
||||||
|
"""
|
||||||
server = server or self.irc.sid
|
server = server or self.irc.sid
|
||||||
if not self.irc.isInternalServer(server):
|
if not self.irc.isInternalServer(server):
|
||||||
raise ValueError('Server %r is not a PyLink server!' % server)
|
raise ValueError('Server %r is not a PyLink server!' % server)
|
||||||
|
Loading…
Reference in New Issue
Block a user