- @bot.sendmsg "PRIVMSG", @bot.config['nickserv.name'], "GHOST #{nick} #{@registry[nick]}"
- if do_identify nick
- sleep @bot.config['nickserv.wait']
- @bot.nickchg nick
- # We need to wait after changing nick, otherwise the server
- # might refuse to execute further commangs, e.g. subsequent JOIN
- # commands until the nick has changed.
- sleep @bot.config['nickserv.wait']
- else
- debug "Failed to identify for nick #{nick}, cannot take over"
- end