mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-23 00:16:41 +00:00
Store new nickname on 401 ERR_NICKINUSE
This commit is contained in:
parent
349a74b79e
commit
0325e73ebf
6
ircp.py
6
ircp.py
@ -385,10 +385,8 @@ class probe:
|
|||||||
if 'You must be connected for' in msg:
|
if 'You must be connected for' in msg:
|
||||||
error(self.display + '\033[31merror\033[0m - delay found', msg)
|
error(self.display + '\033[31merror\033[0m - delay found', msg)
|
||||||
elif event == '433': # ERR_NICKINUSE
|
elif event == '433': # ERR_NICKINUSE
|
||||||
if not settings.nickname:
|
self.nickanme = rndnick()
|
||||||
await self.raw('NICK ' + rndnick())
|
await self.raw('NICK ' + self.nickname)
|
||||||
else:
|
|
||||||
await self.raw('NICK ' + settings.nickname + str(random.randint(1000,9999)))
|
|
||||||
elif event == '439' and len(args) >= 5: # ERR_TARGETTOOFAST
|
elif event == '439' and len(args) >= 5: # ERR_TARGETTOOFAST
|
||||||
chan = args[3]
|
chan = args[3]
|
||||||
msg = ' '.join(args[4:])[1:]
|
msg = ' '.join(args[4:])[1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user