Skip to content

Commit

Permalink
Regain nick on failed GHOST too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thynix committed Jul 18, 2012
1 parent c7a2a97 commit a2c760c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relaybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.network,self.desiredNick))
self.setNick(self.desiredNick)
elif msg.endswith("isn't currently in use."):
log.msg("[%s] GHOST not needed, reclaiming nick %s."%(self.network,self,desiredNick))
self.setNick(self.desiredNick)

def __init__(self, config):
IRCRelayer.__init__(self, config)
Expand Down

0 comments on commit a2c760c

Please sign in to comment.