# File lib/rbot/auth.rb, line 103 def allow?( command, mask, tell=nil ) auth = @users[matchingUser(mask)].level # Directly using @users[] is possible, because UserData has a default setting if( auth >= @levels[command] ) return true else debug "#{mask} is not allowed to perform #{command}" @bot.say tell, "insufficient \"#{command}\" auth (have #{auth}, need #{@levels[command]})" if tell return false end end