From: Vinicius Daly Felizardo Date: Fri, 14 Jun 2013 03:54:52 +0000 (-0400) Subject: mend X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3949df87b141e9dd9c61ac7c2af2cc96b170a274;p=KiwiIRC.git mend --- 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);