]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/quakeauth.rb
qauth plugin: stricter default permissions on commands
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / quakeauth.rb
index 8f412f1d4f9612a881d7a17f6b6c48db3ab18b4c..67c5ef819660f82477e1b64d924c6fc9cdbe59b0 100644 (file)
@@ -5,11 +5,11 @@ class QPlugin < Plugin
   def help(plugin, topic="")
     case topic
     when ""
-      return "quath plugin: handles Q auths. topics set, identify"
+      return "qauth plugin: handles Q auths. topics set, identify"
     when "set"
-      return "nickserv set <user> <passwd>: set the Q user and password and use it to identify in future"
+      return "qauth set <user> <passwd>: set the Q user and password and use it to identify in future"
     when "identify"
-      return "quath identify: identify with Q (if user and auth are set)"
+      return "qauth identify: identify with Q (if user and auth are set)"
     end
   end
   
@@ -27,7 +27,7 @@ class QPlugin < Plugin
   end
 
   def set(m, params)
-    @registry['quakenet.user'] = params[:user]
+    @registry['quakenet.user'] = params[:nick]
     @registry['quakenet.auth'] = params[:passwd]
     m.okay
   end
@@ -48,4 +48,6 @@ class QPlugin < Plugin
 end
 plugin = QPlugin.new
 plugin.map 'qauth set :nick :passwd', :action => "set"
-plugin.map 'quath identify', :action => "identify"
+plugin.map 'qauth identify', :action => "identify"
+
+plugin.default_auth('*', false)