From: Giuseppe Bilotta Date: Thu, 15 Jan 2009 03:31:46 +0000 (+0100) Subject: auth: better clarify the allow/deny syntax X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3e096c573329c71e77baaf3f2e3524c372f65a8f;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git auth: better clarify the allow/deny syntax --- 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 to do []: gives botuser the permissions to execute a command such as the provided sample command (in private or in channel, according to the optional )") + return [ + _("allow to do []: gives botuser the permissions to execute a command such as the provided sample command"), + _("(in private or in channel, according to the optional )."), + _(" 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 from doing []: removes from botuser the permissions to execute a command such as the provided sample command (in private or in channel, according to the optional )") + return [ + _("deny from doing []: removes from botuser the permissions to execute a command such as the provided sample command"), + _("(in private or in channel, according to the optional )."), + _(" 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