LOG_INFO("Ban list syncing: accepted ban of ", ip, " by ", serverip, " at ", uri, ": ");
LOG_INFO(reason, "\n");
-:skip
+LABEL(skip)
}
}
goto killme;
return;
-:killme
+LABEL(killme)
remove(self);
}
ban_ip4 = strcat1(s); // 32
return true;
-:ipv6
+LABEL(ipv6)
i1 = strstrofs(s, ":", 0);
if(i1 < 0)
return false;
return Ban_MaybeEnforceBan(client);
}
-string Ban_Enforce(float i, string reason)
+string Ban_Enforce(float j, string reason)
{
string s;
- entity e;
// Enforce our new ban
s = "";
- FOR_EACH_CLIENTSLOT(e)
- if (IS_REAL_CLIENT(e))
- if(Ban_IsClientBanned(e, i))
+ FOREACH_CLIENTSLOT(IS_REAL_CLIENT(it),
+ {
+ if(Ban_IsClientBanned(it, j))
{
if(reason != "")
{
reason = strcat(reason, ": affects ");
else
reason = strcat(reason, ", ");
- reason = strcat(reason, e.netname);
+ reason = strcat(reason, it.netname);
}
- s = strcat(s, "^1NOTE:^7 banned client ", e.netaddress, "^7 has to go\n");
- dropclient(e);
+ s = strcat(s, "^1NOTE:^7 banned client ", it.netaddress, "^7 has to go\n");
+ dropclient(it);
}
+ });
bprint(s);
return reason;