:on_change => Proc.new { |bot, v| bot.plugins.delegate "set_ident_request", v },
:desc => "String to look for to see if the nick server is asking us to identify")
BotConfig.register BotConfigBooleanValue.new('nickserv.wants_nick',
- :default => true, :requires_restart => false,
+ :default => false, :requires_restart => false,
:desc => "Set to false if the nick server doesn't expect the nick as a parameter in the identify command")
BotConfig.register BotConfigIntegerValue.new('nickserv.wait',
:default => 30, :validate => Proc.new { |v| v > 0 }, :requires_restart => false,
when ""
return "nickserv plugin: handles nickserv protected IRC nicks. topics password, register, identify, listnicks"
when "password"
- return "nickserv password <nick> <passwd>: remember the password for nick <nick> and use it to identify in future"
+ return "nickserv password [<nick>] <passwd>: remember the password for nick <nick> and use it to identify in future"
when "register"
return "nickserv register [<password> [<email>]]: register the current nick, choosing a random password unless <password> is supplied - current nick must not already be registered for this to work. Also specify email if required by your services"
when "identify"
def listen(m)
return unless(m.kind_of? NoticeMessage)
- if (m.sourcenick == ns_nick && m.message =~ @ident_request)
+ if (m.sourcenick.downcase == ns_nick.downcase && m.message =~ @ident_request)
debug "nickserv asked us to identify for nick #{@bot.nick}"
do_identify
end