
|
# File rbot/auth.rb, line 72
def allow?(command, mask, tell=nil)
auth = userlevel(mask)
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
|