code: def handle(_, msg, args):
      
      # SHUT CAPS LOCK OFF, MORON
  
      if args['config']['feature'].getboolean('capskick'):
          nick = args['nick']
          threshold = 0.65
          text = "shutting caps lock off"
          upper = [i for i in msg if i in string.ascii_uppercase]
          if len(msg) == 0:
              return
          upper_ratio = len(upper) / len(msg.replace(' ', ''))
          if args['target'] != 'private':
              with _caps_lock:
                  if upper_ratio > threshold and len(msg) > 10:
                      if nick in _caps:
                          args['do_kick'](args['target'], nick, text)
                          _caps.remove(nick)
                      else:
                          _caps.append(nick)
                  elif nick in _caps:
                      _caps.remove(nick)
docs: Check for capslock abuse.
  
      Check if a line is more than THRESHOLD percent uppercase. If this is
      the second line in a row, kick the user.