// If prefixed with a '/me ', pull that out into a hidden token
let checkActionMessage = function (tokens) {
  if (tokens[0].substr(0, 4) === '/me ') {
    let firstToken = tokens.shift();
    firstToken = firstToken.substr(4);
    tokens.unshift(firstToken);
    tokens.unshift({type: 'action', hidden: true, length: 4});
  }

  return tokens;
};

export {
  checkActionMessage
};
