mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 20:43:08 +00:00
Fix an issue where the word ACTION in a /me can be stripped
This commit is contained in:
parent
18b41b8516
commit
58709d021d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue