psychobunny 10 years ago
parent 885b36bb50
commit 43bd798f2b

@ -29,7 +29,9 @@ SocketUser.deleteAccount = function(socket, data, callback) {
if (err || isAdmin) {
return callback(err || new Error('[[error:cant-delete-admin]]'));
}
user.deleteAccount(socket.uid, callback);
socket.broadcast.emit('event:user_status_change', {uid: socket.uid, status: 'offline'});
});
}
};

Loading…
Cancel
Save