From ad1c99a99c135c23093eb049f31df6694772fcb9 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Fri, 26 May 2023 19:59:31 -0400 Subject: [PATCH] SSL connection status wasnt being update in the snapshot. (Fixed) --- ircp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircp.py b/ircp.py index 7d566c4..427002d 100644 --- a/ircp.py +++ b/ircp.py @@ -36,7 +36,7 @@ snapshot = { 'raw' : [], # All non-classified data is stored in here for analysis 'NOTICE' : None, 'services' : False, - 'ssl' : True, + 'ssl' : False, # server information '001' : None, # RPL_WELCOME @@ -158,6 +158,8 @@ class probe: 'real': settings.realname if settings.realname else rndnick() } self.reader, self.writer = await asyncio.wait_for(asyncio.open_connection(**options), throttle.timeout) + if not fallback: + self.snapshot['ssl'] = True await self.raw('USER {0} 0 * :{1}'.format(identity['user'], identity['real'])) await self.raw('NICK ' + identity['nick']) await self.listen()