fixed permaban on redis

This commit is contained in:
psychobunny
2017-05-05 20:11:18 -04:00
parent 41b4ef859f
commit 2a405ad439

View File

@@ -67,7 +67,7 @@ module.exports = function (User) {
}
// If they are banned, see if the ban has expired
var stillBanned = !userData['banned:expire'] || Date.now() < userData['banned:expire'];
var stillBanned = !parseInt(userData['banned:expire'], 10) || Date.now() < parseInt(userData['banned:expire'], 10);
if (stillBanned) {
return next(null, true);