From 089bf5d8bbcc479bac8dab0d4606c006a93d85c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 18 Sep 2018 08:58:47 -0400 Subject: [PATCH] closes #6773 --- src/socket.io/user/ban.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/socket.io/user/ban.js b/src/socket.io/user/ban.js index 66f98eb061..5195f23d36 100644 --- a/src/socket.io/user/ban.js +++ b/src/socket.io/user/ban.js @@ -30,6 +30,7 @@ module.exports = function (SocketUser) { uid: socket.uid, targetUid: uid, ip: socket.ip, + reason: data.reason || undefined, }, next); }, function (next) { @@ -38,6 +39,7 @@ module.exports = function (SocketUser) { ip: socket.ip, uid: uid, until: data.until > 0 ? data.until : undefined, + reason: data.reason || undefined, }); next(); },