mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01:00
protocols: sed -i 's/_getSid/_get_SID/g'
This commit is contained in:
parent
a60d746e3b
commit
f8155ff74c
@ -404,7 +404,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
||||
# pseudo-uids and pseudo-sids as we see prefixes.
|
||||
if ('!' not in sender) and '.' in sender:
|
||||
# Sender is a server name. XXX: make this check more foolproof
|
||||
idsource = self._getSid(sender)
|
||||
idsource = self._get_SID(sender)
|
||||
if idsource not in self.irc.servers:
|
||||
idsource = self.spawnServer(sender, internal=False)
|
||||
else:
|
||||
|
@ -759,7 +759,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
||||
# If we receive such a remote SQUIT, just forward it as a regular
|
||||
# SQUIT, in order to be consistent with other IRCds which make SQUITs
|
||||
# implicit.
|
||||
target = self._getSid(args[0])
|
||||
target = self._get_SID(args[0])
|
||||
if self.irc.isInternalServer(target):
|
||||
# The target has to be one of our servers in order to work...
|
||||
uplink = self.irc.servers[target].uplink
|
||||
|
@ -51,7 +51,7 @@ class IRCCommonProtocol(Protocol):
|
||||
def _squit(self, numeric, command, args):
|
||||
"""Handles incoming SQUITs."""
|
||||
|
||||
split_server = self._getSid(args[0])
|
||||
split_server = self._get_SID(args[0])
|
||||
|
||||
# Normally we'd only need to check for our SID as the SQUIT target, but Nefarious
|
||||
# actually uses the uplink server as the SQUIT target.
|
||||
@ -165,7 +165,7 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
||||
sender = sender.lstrip(':')
|
||||
|
||||
# If the sender isn't in numeric format, try to convert it automatically.
|
||||
sender_sid = self._getSid(sender)
|
||||
sender_sid = self._get_SID(sender)
|
||||
sender_uid = self._get_UID(sender)
|
||||
|
||||
if sender_sid in self.irc.servers:
|
||||
|
@ -966,7 +966,7 @@ class P10Protocol(IRCS2SProtocol):
|
||||
# Why is this the way it is? I don't know... -GL
|
||||
|
||||
target = args[1]
|
||||
sid = self._getSid(target)
|
||||
sid = self._get_SID(target)
|
||||
orig_pingtime = args[0][1:] # Strip the !, used to denote a TS instead of a server name.
|
||||
|
||||
currtime = time.time()
|
||||
|
@ -511,7 +511,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
"""Handles the SQUIT command."""
|
||||
# <- SQUIT services.int :Read error
|
||||
# Convert the server name to a SID...
|
||||
args[0] = self._getSid(args[0])
|
||||
args[0] = self._get_SID(args[0])
|
||||
# Then, use the SQUIT handler in TS6BaseProtocol as usual.
|
||||
return super().handle_squit(numeric, 'SQUIT', args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user