Merge pull request #2179 from thelounge/xpaw/push-colon
Do not include colon in push message for actions
This commit is contained in:
commit
218e06fbd4
@ -127,8 +127,11 @@ module.exports = function(irc, network) {
|
|||||||
let title = chan.name;
|
let title = chan.name;
|
||||||
let body = cleanIrcMessage(data.message);
|
let body = cleanIrcMessage(data.message);
|
||||||
|
|
||||||
// In channels, prepend sender nickname to the message
|
if (msg.type === Msg.Type.ACTION) {
|
||||||
if (chan.type !== Chan.Type.QUERY) {
|
// 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}`;
|
body = `${data.nick}: ${body}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user