Skip to content

Node.js based forum software built for the modern web

fixed permaban on redis

psychobunny2a405ad439fb
diff --git a/src/user/bans.js b/src/user/bans.js
index dc70d012dd..1795fc64e9 100644
--- a/src/user/bans.js
+++ b/src/user/bans.js
@@ -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);