i introduced a bug that made ccname queries race admin auth queries

This commit is contained in:
rtldg 2022-06-28 13:32:49 +00:00
parent 8b4db28cfb
commit 0360b957e4

View File

@ -1500,12 +1500,6 @@ public void SQL_GetChat_Callback(Database db, DBResultSet results, const char[]
while(results.FetchRow()) while(results.FetchRow())
{ {
gB_CCAccess[client] = view_as<bool>(results.FetchInt(4)); gB_CCAccess[client] = view_as<bool>(results.FetchInt(4));
if (!HasCustomChat(client))
{
return;
}
results.FetchString(1, gS_CustomName[client], 128); results.FetchString(1, gS_CustomName[client], 128);
results.FetchString(3, gS_CustomMessage[client], 16); results.FetchString(3, gS_CustomMessage[client], 16);
} }