message: Indent smarter
diff: @@ -1518,7 +1518,10 @@ MatrixHandler.prototype._textForReplyEvent = Promise.coroutine(function*(event,
  const REPLY_NAME_MAX_LENGTH = 12;
  const eventId = event.content["m.relates_to"]["m.in_reply_to"].event_id;
  const match = REPLY_REGEX.exec(event.content.body);
  - if (match.length === 4) {
  + if (match.length !== 4) {
  + return;
  + }
  +
  let rplName;
  let rplSource;
  const rplText = match[3];
  @@ -1532,13 +1535,13 @@ MatrixHandler.prototype._textForReplyEvent = Promise.coroutine(function*(event,
  }
  const isReply = event.content["m.relates_to"] && event.content["m.relates_to"]["m.in_reply_to"];
  if (isReply) {
  - let match = REPLY_REGEX.exec(event.content.body);
  + let match = REPLY_REGEX.exec(eventContent.content.body);
  rplSource = match.length === 4 ? match[3] : event.content.body;
  }
  else {
  rplSource = eventContent.content.body;
  }
  - rplSource = eventContent.content.body.substr(0, REPLY_SOURCE_MAX_LENGTH);
  + rplSource = rplSource.substr(0, REPLY_SOURCE_MAX_LENGTH);
  this._eventCache.set(eventId, {sender: rplName, body: rplSource});
  } catch (err) {
  // If we couldn't find the event, then frankly we can't trust it and we won't treat it as a reply.
  @@ -1586,7 +1589,6 @@ MatrixHandler.prototype._textForReplyEvent = Promise.coroutine(function*(event,
  formatted: `<${rplName}${rplSource}> ${rplText}`,
  reply: rplText,
  };
  - }
  });
  // EXPORTS
  