add ban messaging when logged in

This commit is contained in:
psychobunny
2017-05-05 19:50:50 -04:00
parent b3bd70235a
commit 41b4ef859f
3 changed files with 25 additions and 16 deletions

View File

@@ -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);