From 3949df87b141e9dd9c61ac7c2af2cc96b170a274 Mon Sep 17 00:00:00 2001 From: Vinicius Daly Felizardo Date: Thu, 13 Jun 2013 23:54:52 -0400 Subject: [PATCH] mend --- client/assets/src/models/channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/assets/src/models/channel.js b/client/assets/src/models/channel.js index 5c7cb5f..cc9c99f 100644 --- a/client/assets/src/models/channel.js +++ b/client/assets/src/models/channel.js @@ -31,7 +31,7 @@ _kiwi.model.Channel = _kiwi.model.Panel.extend({ var msg = (options.message) ? '(' + options.message + ')' : ''; - if (options.type === 'quit') { + if (options.type === 'quit' && show_message) { this.addMsg(' ', '== ' + member.displayNick(true) + ' has quit ' + msg, 'action quit'); @@ -48,7 +48,7 @@ _kiwi.model.Channel = _kiwi.model.Panel.extend({ this.addMsg(' ', '=== You have been kicked by ' + options.by + ' '+msg, 'action kick'); } - } else { + } else if (show_message) { this.addMsg(' ', '== ' + member.displayNick(true) + ' has left ' + msg, 'action part'); } }, this); -- 2.25.1