plugins/Services: Recognize Freenode's response when trying to identify with an unregistered nick.

This commit is contained in:
James Vega 2006-01-22 15:14:44 +00:00
parent fdc9c914b2
commit 177f373369
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ class Services(callbacks.Plugin):
self.sentGhost = False
self.identified = False
irc.queueMsg(ircmsgs.nick(nick))
elif 'is not registered' in s:
self.log.info('Received "Nick not registered" from NickServ %s.',
on)
elif 'currently' in s and 'isn\'t' in s or 'is not' in s:
# The nick isn't online, let's change our nick to it.
self.sentGhost = False