3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

protocols: spawnServer -> spawn_server

This commit is contained in:
James Lu 2017-06-30 21:27:02 -07:00
parent f60dc8fa37
commit d0846170c4
4 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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