# File lib/rbot/botuser.rb, line 518 def BotUser.sanitize_username(name) candidate = name.to_s.chomp.downcase.gsub(/[^a-z0-9]/,"_") raise "sanitized botusername #{candidate} too short" if candidate.length < 3 return candidate end