commit
d36bc160ca
|
@ -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 });
|
||||
})
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue