members = c.get('members');
if (!members) return;
+ // Do we already have this member?
+ if (members.getByNick(event.nick)) {
+ return;
+ }
+
user = new _kiwi.model.Member({
nick: event.nick,
ident: event.ident,
this.model.bind('change:topic_set_by', this.topicSetBy, this);
if (this.model.get('members')) {
+ // When we join the memberlist, we have officially joined the channel
this.model.get('members').bind('add', function (member) {
if (member.get('nick') === this.model.collection.network.get('nick')) {
this.$el.find('.initial_loader').slideUp(function () {
});
}
}, this);
+
+ // Memberlist reset with a new nicklist? Consider we have joined
+ this.model.get('members').bind('reset', function(members) {
+ if (members.getByNick(this.model.collection.network.get('nick'))) {
+ this.$el.find('.initial_loader').slideUp(function () {
+ $(this).remove();
+ });
+ }
+ }, this);
}
// Only show the loader if this is a channel (ie. not a query)