mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 19:52:53 +01:00
ngircd: make linking to non-ngIRCd servers a fatal error
This commit is contained in:
parent
1a692f55ad
commit
6b78b45b20
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user