# previously identified successfully
class NickServPlugin < Plugin
-
+
Config.register Config::StringValue.new('nickserv.name',
:default => "nickserv", :requires_restart => false,
:desc => _("Name of the nick server (all lowercase)"))
: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"))
Config.register Config::StringValue.new('nickserv.nick_avail',
- :default => "not (currently )?online|killed|recovered|disconnesso|libero",
+ :default => "not (currently )?online|killed|ghosted|recovered|disconnesso|libero",
:requires_restart => false,
:on_change => Proc.new { |bot, v| bot.plugins.delegate "set_nick_avail", v },
:desc => _("String to look for to see if the nick server is informing us that our nick is now available"))
return _("nickserv listnicks: lists nicknames and associated password the bot knows about - you will need config level auth access to do this one and it will reply by privmsg only")
end
end
-
+
def genpasswd
return Irc::Bot::Auth.random_password
end
m.reply _("uh ... something went wrong ...")
end
end
-
+
def connect
@identified = false
do_identify
end
-
+
def nicktaken(nick)
if @registry.has_key?(nick)
ns_say "GHOST #{nick} #{@registry[nick]}"