mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-23 00:16:41 +00:00
Added detection & logging for succesful nick registrations with NickServ
This commit is contained in:
parent
a7c9c57a5c
commit
ddeeda4d25
22
ircp.py
22
ircp.py
@ -41,15 +41,16 @@ donotscan = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
snapshot = {
|
snapshot = {
|
||||||
'server' : None,
|
'server' : None,
|
||||||
'host' : None,
|
'host' : None,
|
||||||
'services' : False,
|
'services' : False,
|
||||||
'ssl' : False,
|
'registered' : False,
|
||||||
'proxy' : False,
|
'ssl' : False,
|
||||||
'raw' : [], # all other data goes in here
|
'proxy' : False,
|
||||||
'CAP' : None,
|
'raw' : [], # all other data goes in here
|
||||||
'KILL' : None, # TODO: currently does not verify it was us being killed
|
'CAP' : None,
|
||||||
'NOTICE' : None,
|
'KILL' : None, # TODO: currently does not verify it was us being killed
|
||||||
|
'NOTICE' : None,
|
||||||
|
|
||||||
# server information
|
# server information
|
||||||
'001' : None, # RPL_WELCOME
|
'001' : None, # RPL_WELCOME
|
||||||
@ -438,6 +439,9 @@ class probe:
|
|||||||
await self.raw(f'NOTICE {nick} \001VERSION {version}\001')
|
await self.raw(f'NOTICE {nick} \001VERSION {version}\001')
|
||||||
elif nick == 'NickServ':
|
elif nick == 'NickServ':
|
||||||
self.snapshot['services'] = True
|
self.snapshot['services'] = True
|
||||||
|
if 'is now registered' in msg or f'Nickname {self.nickname} registered' in msg:
|
||||||
|
debug(self.display + '\033[35mNickServ\033[0m registered')
|
||||||
|
self.snapshot['registered'] = True
|
||||||
elif '!' not in args[0]:
|
elif '!' not in args[0]:
|
||||||
if 'dronebl.org/lookup' in msg:
|
if 'dronebl.org/lookup' in msg:
|
||||||
self.snapshot['proxy'] = True
|
self.snapshot['proxy'] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user