Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing presence

  • Loading branch information...
commit c5428aee9c2b367c9637eb6cdbbce598b8b56d09 1 parent e8afc59
Pablo authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 js/plugins/presence.js
View
4 js/plugins/presence.js
@@ -43,26 +43,22 @@
// Join room
Talker.client.on("join", function (msg) {
- if (msg.replay) { return; }
_addUser(msg.nick);
_sortUsers();
});
// Part room
Talker.client.on("part", function (msg) {
- if (msg.replay) { return; }
_removeUser(msg.nick);
});
// Quit
Talker.client.on("quit", function (msg) {
- if (msg.replay) { return; }
_removeUser(msg.nick);
});
// Rename user
Talker.client.on("nick", function (msg) {
- if (msg.replay) { return; }
$('ul.users li[data-user=' + msg.old_nick + ']').text(msg.new_nick).attr('data-user', msg.new_nick);
_sortUsers();
});
Please sign in to comment.
Something went wrong with that request. Please try again.