From 6b78b45b203d0a27767bcfd8752b2b6ee9430761 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 18 Aug 2019 19:51:37 -0700 Subject: [PATCH] ngircd: make linking to non-ngIRCd servers a fatal error --- protocols/ngircd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/ngircd.py b/protocols/ngircd.py index 8e0f4c6..1c724e7 100644 --- a/protocols/ngircd.py +++ b/protocols/ngircd.py @@ -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): """