summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-15 04:31:46 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-15 04:31:46 +0100
commit3e096c573329c71e77baaf3f2e3524c372f65a8f (patch)
tree94d27b295e6d53e73d3d64c6bbc497e94c0ed23a /lib/rbot
parent6b81bf9049cb7c1ba0acea26a9ad37db9fe8c163 (diff)
auth: better clarify the allow/deny syntax
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/auth.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb
index af38b76f..5e80d880 100644
--- a/lib/rbot/core/auth.rb
+++ b/lib/rbot/core/auth.rb
@@ -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