websocket connections AND regular connections?! also clean up a warning

This commit is contained in:
AwesomeAim 2023-05-05 10:45:16 -07:00
parent 83bebb5e25
commit c37dcee362

View File

@ -62,7 +62,7 @@ QPair<bool, DBManager::BanInfo> DBManager::isIPBanned(QString ipid)
ban.moderator = query.value(7).toString();
if (ban.duration == -2)
return {true, ban};
long long current_time = QDateTime::currentDateTime().toSecsSinceEpoch();
unsigned long current_time = QDateTime::currentDateTime().toSecsSinceEpoch();
if (ban.time + ban.duration > current_time)
return {true, ban};
else
@ -90,7 +90,7 @@ QPair<bool, DBManager::BanInfo> DBManager::isHDIDBanned(QString hdid)
ban.moderator = query.value(7).toString();
if (ban.duration == -2)
return {true, ban};
long long current_time = QDateTime::currentDateTime().toSecsSinceEpoch();
unsigned long current_time = QDateTime::currentDateTime().toSecsSinceEpoch();
if (ban.time + ban.duration > current_time)
return {true, ban};
else