mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
add ban messaging when logged in
This commit is contained in:
@@ -100,7 +100,6 @@ module.exports = function (SocketUser) {
|
||||
user.ban(uid, until, reason, next);
|
||||
},
|
||||
function (next) {
|
||||
console.log(reason);
|
||||
if (!reason) {
|
||||
return translator.translate('[[user:info.banned-no-reason]]', function (translated) {
|
||||
next(false, translated);
|
||||
|
||||
Reference in New Issue
Block a user