Fix bug where the originID field doesn't get set when banning by name

This commit is contained in:
Kawe Mazidjatari 2022-08-29 14:59:21 +02:00
parent 42dcfdbbec
commit 22fa9bbef9

View File

@ -214,7 +214,7 @@ void Host_Ban_f(const CCommand& args)
{
if (strcmp(args.Arg(1), pNetChan->GetName()) == NULL) // Our wanted name?
{
if (g_pBanSystem->AddEntry(pNetChan->GetAddress(), pClient->GetOriginID() && !bSave))
if (g_pBanSystem->AddEntry(pNetChan->GetAddress(), pClient->GetOriginID()) && !bSave)
{
bSave = true;
}