Browse files

Regain nick on failed GHOST too.

  • Loading branch information...
1 parent c7a2a97 commit a2c760c628a4a2332f5c013dcd9bc680aa1106fd @Thynix committed Jul 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0
@@ -203,6 +203,9 @@ def noticed(self, user, channel, message):
elif msg == "ghost with your nickname has been killed." or msg == "ghost with your nick has been killed.":
log.msg("[%s] GHOST successful, reclaiming nick %s."%(,self.desiredNick))
+ elif msg.endswith("isn't currently in use."):
+ log.msg("[%s] GHOST not needed, reclaiming nick %s."%(,self,desiredNick))
+ self.setNick(self.desiredNick)
def __init__(self, config):
IRCRelayer.__init__(self, config)

0 comments on commit a2c760c

Please sign in to comment.