Merge pull request #693 from Xaekai/damnit

Minor fixes to afk stuff.
This commit is contained in:
Calvin Montgomery 2017-06-29 21:09:54 -07:00 committed by GitHub
commit d36bc160ca
2 changed files with 2 additions and 2 deletions

View file

@ -419,7 +419,7 @@ Channel.prototype.acceptUser = function (user) {
}
user.on('afk', function(afk){
self.sendUserMeta(self.users, user, -1);
self.sendUserMeta(self.users, user);
// TODO: Drop legacy setAFK frame after a few months
self.broadcastAll("setAFK", { name: user.getName(), afk: afk });
})

View file

@ -520,7 +520,7 @@ Callbacks = {
* after script authors have had ample time to update
*/
socket.listeners('setAFK').forEach(function(listener){
listener(data.meta.afk);
listener({ name: data.name, afk: data.meta.afk });
});
formatUserlistItem(user, data);