Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug

  • Loading branch information...
commit f07af529c10f1ca42d3ae26cabd1711d026b9661 1 parent 789aad9
Pablo Villalba authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 js/plugins/presence.js
  2. +1 −1  js/plugins/title_message_count.js
View
8 js/plugins/presence.js
@@ -43,26 +43,26 @@
// Join room
Talker.client.on("join", function (msg) {
- if (e.replay) { return; }
+ if (msg.replay) { return; }
_addUser(msg.nick);
_sortUsers();
});
// Part room
Talker.client.on("part", function (msg) {
- if (e.replay) { return; }
+ if (msg.replay) { return; }
_removeUser(msg.nick);
});
// Quit
Talker.client.on("quit", function (msg) {
- if (e.replay) { return; }
+ if (msg.replay) { return; }
_removeUser(msg.nick);
});
// Rename user
Talker.client.on("nick", function (msg) {
- if (e.replay) { return; }
+ if (msg.replay) { return; }
$('ul.users li[data-user=' + msg.old_nick + ']').text(msg.new_nick).attr('data-user', msg.new_nick);
_sortUsers();
});
View
2  js/plugins/title_message_count.js
@@ -7,7 +7,7 @@
var count = 0
, originalTitle = document.title;
- Talker.client.on("message", function () {
+ Talker.client.on("message", function (e) {
// Don't notify replayed messages
if (e.replay) { return; }
Please sign in to comment.
Something went wrong with that request. Please try again.