|
|
@@ -44,7 +44,7 @@ def process_event(self, connection, event):
|
|
|
return
|
|
|
elif event.arguments[0].startswith('You must have been using this nick for at least 30 seconds to register.'):
|
|
|
log.info('Waiting 31 seconds to register with NickServ.')
|
|
|
- asyncio.run(register_later(self.connection, 31))
|
|
|
+ asyncio.run(register_later(self, connection, 31))
|
|
|
return
|
|
|
elif event.arguments[0].startswith("You are already identified."):
|
|
|
return
|
|
|
@@ -66,6 +66,6 @@ def process_event(self, connection, event):
|
|
|
if event.source.nick != "Global":
|
|
|
Inform.notice_owners(self, connection, 'Notice from %s %s %s %s: %s %s' % (font.red, font.red, event.source.nick, font.grey, font.reset, event.arguments[0]))
|
|
|
|
|
|
-async def register_later(connection, seconds):
|
|
|
+async def register_later(self, connection, seconds):
|
|
|
await asyncio.sleep(seconds)
|
|
|
connection.privmsg('NickServ', 'identify %s %s' % (self.network.nickname, self.network.password))
|