From 58709d021deb76e417b6698135213f3178c99e42 Mon Sep 17 00:00:00 2001 From: David White Date: Thu, 2 Oct 2014 15:25:31 +0100 Subject: [PATCH] Fix an issue where the word ACTION in a /me can be stripped --- src/plugins/irc-events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/message.js b/src/plugins/irc-events/message.js index 88044613..f21d4f67 100644 --- a/src/plugins/irc-events/message.js +++ b/src/plugins/irc-events/message.js @@ -32,7 +32,7 @@ module.exports = function(irc, network) { var text = data.message; if (text.split(" ")[0] === "\u0001ACTION") { type = Msg.Type.ACTION; - text = text.replace(/\u0001|ACTION/g, ""); + text = text.replace(/^\u0001ACTION|\u0001$/g, ""); } text.split(" ").forEach(function(w) {