code: function isSpam(from, message) {
    if (!config.filterSpam)
      return false;
  
    // Skip if this is a mod
    if (users[from] && users[from].mod)
      return false;
  
    // Check for capital letter spam
    var uppercaseCount = message.replace(/[^A-Z]/g, '').length;
    if (uppercaseCount >= 10 && uppercaseCount >= message.length / 2) {
      timeoutUser(from, null, 'stop using capital letters');
      return true;
    }
  
    return false;
  }
docs: Helper functions 
  Check if message is spam
  
  @param from    {string} - nickname of user who sent the message
  @param message {string} - message being sent
  
  @returns {boolean} - true if spam, false if not