mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
Merge remote-tracking branch 'origin/beta' into wip/ngircd
Conflicts: protocols/ircs2s_common.py protocols/ts6.py
This commit is contained in:
commit
1e5985b608
@ -322,10 +322,6 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
|||||||
sender = self.uplink
|
sender = self.uplink
|
||||||
args.insert(0, sender)
|
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()
|
raw_command = args[1].upper()
|
||||||
args = args[2:]
|
args = args[2:]
|
||||||
|
|
||||||
@ -336,6 +332,10 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
|||||||
if command != raw_command:
|
if command != raw_command:
|
||||||
log.debug('(%s) Translating token %s to command %s', self.name, raw_command, 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':
|
if command == 'ENCAP':
|
||||||
# Special case for TS6 encapsulated commands (ENCAP), in forms like this:
|
# Special case for TS6 encapsulated commands (ENCAP), in forms like this:
|
||||||
# <- :00A ENCAP * SU 42XAAAAAC :GLolol
|
# <- :00A ENCAP * SU 42XAAAAAC :GLolol
|
||||||
|
Loading…
Reference in New Issue
Block a user