From e4509b9ed52f054ee87871b4209440aa053d3bd0 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 4 Jan 2016 04:50:37 -0500 Subject: [PATCH] Fix NickServ auth with protected nicks. --- earwigbot/irc/frontend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/earwigbot/irc/frontend.py b/earwigbot/irc/frontend.py index a81ccc1..52a24b5 100644 --- a/earwigbot/irc/frontend.py +++ b/earwigbot/irc/frontend.py @@ -87,6 +87,8 @@ class Frontend(IRCConnection): elif line[1] == "NOTICE": data = Data(self.nick, line, msgtype="NOTICE") if self._auth_wait and data.nick == self.NICK_SERVICES: + if data.msg.startswith("This nickname is registered."): + continue self._auth_wait = False sleep(2) # Wait for hostname change to propagate self._join_channels() @@ -99,6 +101,7 @@ class Frontend(IRCConnection): except KeyError: self._join_channels() else: + self.logger.debug("Identifying with services") msg = "IDENTIFY {0} {1}".format(username, password) self.say(self.NICK_SERVICES, msg, hidelog=True) self._auth_wait = True