From 43bd798f2b8af7810ac0487f1956599e06b79c65 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 8 Apr 2015 18:03:19 -0400 Subject: [PATCH] #2967 --- src/socket.io/user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/socket.io/user.js b/src/socket.io/user.js index 850edff7d0..dffed2730f 100644 --- a/src/socket.io/user.js +++ b/src/socket.io/user.js @@ -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'}); }); } };