Add an extra check to prevent sticking usernames clientside

This commit is contained in:
calzoneman 2013-08-21 19:20:26 -05:00
parent 3abc7ca0c6
commit 4841e7bc1c
2 changed files with 10 additions and 1 deletions

View file

@ -652,6 +652,10 @@ Callbacks = {
},
addUser: function(data) {
var user = findUserlistItem(data.name);
// Remove previous instance of user, if there was one
if(user !== null)
user.remove();
var div = $("<div/>")
.addClass("userlist_item");
var flair = $("<span/>").appendTo(div);