]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/auth.rb
Relocate help strings to proper locations, add help for 'mode' command
[user/henk/code/ruby/rbot.git] / lib / rbot / core / auth.rb
index 9c90d9ac4dcc3b8ab7257fedc1dbbce90094dfdf..eee500456c241e135fb919018c572d98bc359cd8 100644 (file)
@@ -1,6 +1,11 @@
 #-- vim:sw=2:et\r
 #++\r
-\r
+#\r
+# :title: rbot auth management from IRC\r
+#\r
+# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>\r
+# Copyright:: (C) 2006,2007 Giuseppe Bilotta\r
+# License:: GPL v2\r
 \r
 class AuthModule < CoreBotModule\r
 \r
@@ -89,7 +94,7 @@ class AuthModule < CoreBotModule
     splits = params[:args]\r
 \r
     has_for = splits[-2] == "for"\r
-    return usage unless has_for\r
+    return usage(m) unless has_for\r
 \r
     begin\r
       user = @bot.auth.get_botuser(splits[-1].sub(/^all$/,"everyone"))\r
@@ -246,6 +251,8 @@ class AuthModule < CoreBotModule
         return "permissions [re]set <permission> [in <channel>] for <user>: sets or resets the permissions for botuser <user> in channel <channel> (use ? to change the permissions for private addressing)"\r
       when "view"\r
         return "permissions view [for <user>]: display the permissions for user <user>"\r
+      else\r
+        return "topics: syntax, (re)set, view"\r
       end\r
     when "user"\r
       case topic\r