From cc2298d0bef9b289b24cfde4f20f5518a7e5eb10 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 19 Oct 2020 14:03:35 -0700 Subject: [PATCH] inspircd: track SSL/TLS status of remote users --- protocols/inspircd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 1cbdc8b..8bacdae 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -986,6 +986,8 @@ class InspIRCdProtocol(TS6BaseProtocol): self._modsupport.add(module[1:]) else: log.warning('(%s) Got unknown METADATA modules string: %r', self.name, args[-1]) + elif args[1] == 'ssl_cert' and uid in self.users: + self.users[uid].ssl = True def handle_version(self, numeric, command, args): """