From a9f009d3bfe01e51d0157583ca942a522c6a552c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 11 Oct 2007 07:59:27 +0000 Subject: New Auth Framework: always allow the 'login' command --- lib/rbot/botuser.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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) -- cgit v1.2.3