mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-19 06:00:48 +00:00
This could never have worked in the first place. Duh.
This commit is contained in:
parent
372c2ea521
commit
0693f0c1b3
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
static void SV_AddBanToList(qboolean isexception)
|
||||||
{
|
{
|
||||||
char *banstring;
|
char *banstring;
|
||||||
|
char addy2[NET_ADDRSTRMAXLEN];
|
||||||
netadr_t ip;
|
netadr_t ip;
|
||||||
int index, argc, mask;
|
int index, argc, mask;
|
||||||
serverBan_t *curban;
|
serverBan_t *curban;
|
||||||
|
@ -799,9 +800,11 @@ static void SV_AddBanToList(qboolean isexception)
|
||||||
{
|
{
|
||||||
if((curban->isexception || !isexception) && NET_CompareBaseAdrMask(curban->ip, ip, curban->subnet))
|
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",
|
Com_Printf("Error: %s %s/%d supersedes %s %s/%d\n", curban->isexception ? "Exception" : "Ban",
|
||||||
NET_AdrToString(curban->ip), curban->subnet,
|
NET_AdrToString(curban->ip), curban->subnet,
|
||||||
isexception ? "exception" : "ban", NET_AdrToString(ip), mask);
|
isexception ? "exception" : "ban", addy2, mask);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -809,9 +812,11 @@ static void SV_AddBanToList(qboolean isexception)
|
||||||
{
|
{
|
||||||
if(!curban->isexception && isexception && NET_CompareBaseAdrMask(curban->ip, ip, mask))
|
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",
|
Com_Printf("Error: %s %s/%d supersedes already existing %s %s/%d\n", isexception ? "Exception" : "Ban",
|
||||||
NET_AdrToString(ip), mask,
|
NET_AdrToString(ip), mask,
|
||||||
curban->isexception ? "exception" : "ban", NET_AdrToString(curban->ip), curban->subnet);
|
curban->isexception ? "exception" : "ban", addy2, curban->subnet);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue