From 167101c3aafa080e80892fea0353f7010de63122 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 9 Mar 2018 11:01:47 +0200 Subject: [PATCH] Do not include colon in push message for actions --- src/plugins/irc-events/message.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/irc-events/message.js b/src/plugins/irc-events/message.js index 35b8bdc1..4187f646 100644 --- a/src/plugins/irc-events/message.js +++ b/src/plugins/irc-events/message.js @@ -127,8 +127,11 @@ module.exports = function(irc, network) { let title = chan.name; let body = cleanIrcMessage(data.message); - // In channels, prepend sender nickname to the message - if (chan.type !== Chan.Type.QUERY) { + if (msg.type === Msg.Type.ACTION) { + // For actions, do not include colon in the message + body = `${data.nick} ${body}`; + } else if (chan.type !== Chan.Type.QUERY) { + // In channels, prepend sender nickname to the message body = `${data.nick}: ${body}`; }