_kiwi.model.Channel = _kiwi.model.Panel.extend({\r
initialize: function (attributes) {\r
var name = this.get("name") || "",\r
- members;\r
+ members,\r
+ that = this;\r
\r
this.view = new _kiwi.view.Channel({"model": this, "name": name});\r
this.set({\r
members.bind("add", function (member) {\r
var show_message = _kiwi.global.settings.get('show_joins_parts');\r
if (show_message === false) {\r
+ // TODO: This might be better off being moved to the view at some point.\r
+ if (member.get('nick') === that.collection.network.get('nick')) {\r
+ this.view.$el.find('.initial_loader').slideUp(function () {\r
+ $(this).remove();\r
+ });\r
+ }\r
return;\r
}\r
- \r
+\r
this.addMsg(' ', '== ' + member.displayNick(true) + ' has joined', 'action join');\r
}, this);\r
\r