]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
auth: better clarify the allow/deny syntax
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Jan 2009 03:31:46 +0000 (04:31 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Jan 2009 03:31:46 +0000 (04:31 +0100)
lib/rbot/core/auth.rb

index af38b76f2880257bd3bb358c5a63c8308a2606d1..5e80d880081585d874578aa2d41e1b1bbcf00fed 100644 (file)
@@ -411,9 +411,21 @@ class AuthModule < CoreBotModule
     when "hello"
       return _("hello: creates a bot user for the person issuing the command")
     when "allow"
-      return _("allow <user> to do <sample command> [<where>]: gives botuser <user> the permissions to execute a command such as the provided sample command (in private or in channel, according to the optional <where>)")
+      return [
+        _("allow <user> to do <sample command> [<where>]: gives botuser <user> the permissions to execute a command such as the provided sample command"),
+        _("(in private or in channel, according to the optional <where>)."),
+        _("<sample command> should be a full command, not just the command keyword --"),
+        _("correct: allow user to do addquote stuff --"),
+        _("wrong: allow user to do addquote.")
+      ].join(" ")
     when "deny"
-      return _("deny <user> from doing <sample command> [<where>]: removes from botuser <user> the permissions to execute a command such as the provided sample command (in private or in channel, according to the optional <where>)")
+      return [
+        _("deny <user> from doing <sample command> [<where>]: removes from botuser <user> the permissions to execute a command such as the provided sample command"),
+        _("(in private or in channel, according to the optional <where>)."),
+        _("<sample command> should be a full command, not just the command keyword --"),
+        _("correct: deny user from doing addquote stuff --"),
+        _("wrong: deny user from doing addquote.")
+      ].join(" ")
     else
       return _("auth commands: auth, login, whoami, who, permission[s], user, meet, hello, allow, deny")
     end