3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

ngircd: make linking to non-ngIRCd servers a fatal error

This commit is contained in:
James Lu 2019-08-18 19:51:37 -07:00
parent 1a692f55ad
commit 6b78b45b20

View File

@ -511,7 +511,8 @@ class NgIRCdProtocol(IRCS2SProtocol):
if recvpass != self.serverdata['recvpass']:
raise ProtocolError("RECVPASS from uplink does not match configuration!")
assert 'IRC+' in args[1], "Linking to non-ngIRCd server using this protocol module is not supported"
if 'IRC+' not in args[1]:
raise ProtocolError("Linking to non-ngIRCd server using this protocol module is not supported")
def handle_ping(self, source, command, args):
"""