mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
protocols: spawnServer -> spawn_server
This commit is contained in:
parent
f60dc8fa37
commit
d0846170c4
@ -117,7 +117,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
||||
|
||||
return u
|
||||
|
||||
def spawnServer(self, name, sid=None, uplink=None, desc=None, endburst_delay=0, internal=True):
|
||||
def spawn_server(self, name, sid=None, uplink=None, desc=None, endburst_delay=0, internal=True):
|
||||
"""
|
||||
STUB: Pretends to spawn a new server with a subset of the given options.
|
||||
"""
|
||||
@ -406,7 +406,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
||||
# Sender is a server name. XXX: make this check more foolproof
|
||||
idsource = self._get_SID(sender)
|
||||
if idsource not in self.servers:
|
||||
idsource = self.spawnServer(sender, internal=False)
|
||||
idsource = self.spawn_server(sender, internal=False)
|
||||
else:
|
||||
# Sender is a either a nick or a nick!user@host prefix. Split it into its relevant parts.
|
||||
try:
|
||||
|
@ -338,7 +338,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
||||
self._send_with_prefix(source, 'AWAY')
|
||||
self.users[source].away = text
|
||||
|
||||
def spawnServer(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
def spawn_server(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
"""
|
||||
Spawns a server off a PyLink server. desc (server description)
|
||||
defaults to the one in the config. uplink defaults to the main PyLink
|
||||
|
@ -626,7 +626,7 @@ class P10Protocol(IRCS2SProtocol):
|
||||
|
||||
self.updateTS(server, channel, ts, changedmodes)
|
||||
|
||||
def spawnServer(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
def spawn_server(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
"""
|
||||
Spawns a server off a PyLink server. desc (server description)
|
||||
defaults to the one in the config. uplink defaults to the main PyLink
|
||||
|
@ -246,7 +246,7 @@ class TS6BaseProtocol(IRCS2SProtocol):
|
||||
self.channels[target].topic = text
|
||||
self.channels[target].topicset = True
|
||||
|
||||
def spawnServer(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
def spawn_server(self, name, sid=None, uplink=None, desc=None, endburst_delay=0):
|
||||
"""
|
||||
Spawns a server off a PyLink server. desc (server description)
|
||||
defaults to the one in the config. uplink defaults to the main PyLink
|
||||
|
Loading…
Reference in New Issue
Block a user