X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=data%2Frbot%2Fplugins%2Fquakeauth.rb;h=531f14305bd32cc90211b10295039efab5598866;hb=90656f4203a0a989b6fb110d4a07598dd186b84c;hp=03c82400d4329543f9d8e31e6e1e4d0b2228ad27;hpb=58b43c90ef7435713213015848eaf0486fab0b8f;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/quakeauth.rb b/data/rbot/plugins/quakeauth.rb index 03c82400..531f1430 100644 --- a/data/rbot/plugins/quakeauth.rb +++ b/data/rbot/plugins/quakeauth.rb @@ -10,7 +10,7 @@ # Automatically auths with Q on QuakeNet servers class QPlugin < Plugin - + def help(plugin, topic="") case topic when "" @@ -23,7 +23,7 @@ class QPlugin < Plugin return "qauth register : register with Q, an email on how to proceed will be sent to the email address you provide" end end - + def initialize super # this plugin only wants to store strings! @@ -43,9 +43,9 @@ class QPlugin < Plugin @registry['quakenet.auth'] = params[:password] m.okay end - + def connect - identify(nil, nil) if on_quakenet? + identify(nil, {}) if on_quakenet? end def identify(m, params) @@ -79,6 +79,7 @@ class QPlugin < Plugin @bot.say @source, "username or password incorrect" if @source when /you are now logged in/i @bot.say @source, "authed successfully" if @source + @bot.plugins.delegate('identified') when /auth is not available/ @bot.say @source, "already authed" if @source end