summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-11 07:59:27 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-10-11 07:59:27 +0000
commita9f009d3bfe01e51d0157583ca942a522c6a552c (patch)
tree1957fb88927c0150988111efc9b04a6088131486 /lib/rbot
parenta209adb0e00e2a335333c1cb696d5807a47072c6 (diff)
New Auth Framework: always allow the 'login' command
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/botuser.rb3
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)