Core/Commands: Fixed .pinfo ban output for permanent bans

This commit is contained in:
Shauren
2022-03-11 11:32:14 +01:00
parent 53e1666a93
commit 47de80b852

View File

@@ -1782,7 +1782,7 @@ public:
if (result2)
{
Field* fields = result2->Fetch();
bool permanent = fields[1].GetBool();
bool permanent = fields[1].GetUInt64() != 0;
banTime = !permanent ? int64(fields[0].GetUInt32()) : 0;
bannedBy = fields[2].GetString();
banReason = fields[3].GetString();