1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-26 09:56:42 +00:00

SSL connection status wasnt being update in the snapshot. (Fixed)

This commit is contained in:
Dionysus 2023-05-26 19:59:31 -04:00
parent abc8150ddf
commit ad1c99a99c
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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()