X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fnickserv.rb;h=768840d38522b13ce73fd986816c5ae0966e7a88;hb=36dba6af1f2d19c89e144b46acfbca8e1a40b756;hp=36333477eacbdc00f90e670261f3e72f3402f6b7;hpb=22e6cefa54de681b131ecb97fc9383ff5e990dfe;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/nickserv.rb b/data/rbot/plugins/nickserv.rb index 36333477..768840d3 100644 --- a/data/rbot/plugins/nickserv.rb +++ b/data/rbot/plugins/nickserv.rb @@ -20,7 +20,7 @@ # 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)")) @@ -62,7 +62,7 @@ class NickServPlugin < Plugin 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 @@ -167,12 +167,12 @@ class NickServPlugin < Plugin 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]}"