From e4b4e0e065a6e25f470ba86e1270084c3758d00f Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Sat, 27 Sep 2014 17:14:52 -0700 Subject: [PATCH] Fix log highlight --- client/css/style.css | 3 --- package.json | 2 +- src/log.js | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 517c8e4..18386ea 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -533,9 +533,6 @@ button { padding-left: 10px; padding-right: 6px; } -#chat .wrap { - display: block; -} #chat .wrap, #chat .text a { font-style: normal; diff --git a/package.json b/package.json index 688fdd8..a5ed866 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shout", "description": "The self-hosted web IRC client", - "version": "0.38.2", + "version": "0.38.3", "author": "Mattias Erming", "preferGlobal": true, "bin": { diff --git a/src/log.js b/src/log.js index 335898a..e3b399e 100644 --- a/src/log.js +++ b/src/log.js @@ -19,7 +19,8 @@ module.exports = { var time = moment().zone(tz).format(format); var line = "[" + time + "] "; - if (msg.type == "message") { + var type = msg.type.trim(); + if (type == "message" || type == "highlight") { // Format: // [2014-01-01 00:00:00] Put that cookie down.. Now!! line += "<" + msg.from + "> " + msg.text;