3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

Merge remote-tracking branch 'origin/beta' into wip/ngircd

Conflicts:
	protocols/ircs2s_common.py
	protocols/ts6.py
This commit is contained in:
James Lu 2017-07-05 02:24:10 -07:00
commit 1e5985b608

View File

@ -322,10 +322,6 @@ class IRCS2SProtocol(IRCCommonProtocol):
sender = self.uplink
args.insert(0, sender)
if self.is_internal_client(sender) or self.is_internal_server(sender):
log.warning("(%s) Received command %s being routed the wrong way!", self.name, command)
return
raw_command = args[1].upper()
args = args[2:]
@ -336,6 +332,10 @@ class IRCS2SProtocol(IRCCommonProtocol):
if command != raw_command:
log.debug('(%s) Translating token %s to command %s', self.name, raw_command, command)
if self.is_internal_client(sender) or self.is_internal_server(sender):
log.warning("(%s) Received command %s being routed the wrong way!", self.name, command)
return
if command == 'ENCAP':
# Special case for TS6 encapsulated commands (ENCAP), in forms like this:
# <- :00A ENCAP * SU 42XAAAAAC :GLolol