Merge pull request #2179 from thelounge/xpaw/push-colon

Do not include colon in push message for actions
This commit is contained in:
Pavel Djundik 2018-03-09 11:22:01 +02:00 committed by GitHub
commit 218e06fbd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`;
}