diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-05-28 07:52:09 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-05-28 07:52:09 +0000 |
commit | 584df3445f865e860f447ca743923a60b54ee492 (patch) | |
tree | 77478db353d4e69a9c347bdea4ff87cb2390add0 | |
parent | bcfa8f9ef610bb3848d4f481219356203dfd133a (diff) | |
download | ioquake3-aero-584df3445f865e860f447ca743923a60b54ee492.tar.gz ioquake3-aero-584df3445f865e860f447ca743923a60b54ee492.zip |
This could never have worked in the first place. Duh.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1559 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/server/sv_ccmds.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/code/server/sv_ccmds.c b/code/server/sv_ccmds.c index 482e4a2..56a510f 100644 --- a/code/server/sv_ccmds.c +++ b/code/server/sv_ccmds.c @@ -714,6 +714,7 @@ Ban a user from being able to play on this server based on his ip address. static void SV_AddBanToList(qboolean isexception) { char *banstring; + char addy2[NET_ADDRSTRMAXLEN]; netadr_t ip; int index, argc, mask; serverBan_t *curban; @@ -799,9 +800,11 @@ static void SV_AddBanToList(qboolean isexception) { if((curban->isexception || !isexception) && NET_CompareBaseAdrMask(curban->ip, ip, curban->subnet)) { + Q_strncpyz(addy2, NET_AdrToString(ip), sizeof(addy2)); + Com_Printf("Error: %s %s/%d supersedes %s %s/%d\n", curban->isexception ? "Exception" : "Ban", NET_AdrToString(curban->ip), curban->subnet, - isexception ? "exception" : "ban", NET_AdrToString(ip), mask); + isexception ? "exception" : "ban", addy2, mask); return; } } @@ -809,9 +812,11 @@ static void SV_AddBanToList(qboolean isexception) { if(!curban->isexception && isexception && NET_CompareBaseAdrMask(curban->ip, ip, mask)) { + Q_strncpyz(addy2, NET_AdrToString(curban->ip), sizeof(addy2)); + Com_Printf("Error: %s %s/%d supersedes already existing %s %s/%d\n", isexception ? "Exception" : "Ban", NET_AdrToString(ip), mask, - curban->isexception ? "exception" : "ban", NET_AdrToString(curban->ip), curban->subnet); + curban->isexception ? "exception" : "ban", addy2, curban->subnet); return; } } |