projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c212772
)
Use loop macro in Ban_Enforce
83/head
91/head
author
Mattia Basaglia <mattia.basaglia@gmail.com>
Fri, 23 Jan 2015 15:15:28 +0000
(16:15 +0100)
committer
Mattia Basaglia <mattia.basaglia@gmail.com>
Fri, 23 Jan 2015 15:15:28 +0000
(16:15 +0100)
qcsrc/server/ipban.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/ipban.qc
b/qcsrc/server/ipban.qc
index b7ea0cc2f330051e670bef11de8eaa45922ce085..d8a70fe658a238fe1d4e414cfd3164d472ee7a9e 100644
(file)
--- a/
qcsrc/server/ipban.qc
+++ b/
qcsrc/server/ipban.qc
@@
-469,7
+469,7
@@
string Ban_Enforce(float i, string reason)
// Enforce our new ban
s = "";
-
for(e = world; (e = nextent(e)) && (num_for_edict(e) <= maxclients);
)
+
FOR_EACH_CLIENTSLOT(e
)
if (IS_REAL_CLIENT(e))
if(Ban_IsClientBanned(e, i))
{