diff options
-rw-r--r-- | lib/rbot/botuser.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index f2c48421..dc137154 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -182,6 +182,9 @@ class Bot #
def permit?(str)
cmd = str.to_irc_auth_command
+ # TODO user-configurable list of always-allowed commands,
+ # for admins that want to set permissions -* for everybody
+ return true if cmd.command == :login
allow = nil
cmd.path.reverse.each { |k|
if @perm.has_key?(k)
|