This commit is contained in:
Learath 2019-02-13 14:59:46 +01:00
parent 867facfffc
commit 37c67c00ad
2 changed files with 5 additions and 4 deletions

View file

@ -3041,7 +3041,7 @@ unsigned str_quickhash(const char *str)
return hash;
}
static const char *str_token_next(const char *str, const char *delim, size_t *length)
static const char *str_token_next(const char *str, const char *delim, int *length)
{
str += strspn(str, delim);
if(!*str)
@ -3054,9 +3054,10 @@ static const char *str_token_next(const char *str, const char *delim, size_t *le
int str_in_list(const char *list, const char *delim, const char *needle)
{
const char *tok = list;
size_t len = 0, notfound = 1;
int len = 0, notfound = 1;
while(notfound && (tok = str_token_next(tok, delim, &len))){
while(notfound && (tok = str_token_next(tok, delim, &len)))
{
notfound = str_comp_num(tok, needle, len);
tok = tok + len;
}

View file

@ -359,7 +359,7 @@ MACRO_CONFIG_INT(SvSoloServer, sv_solo_server, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_G
MACRO_CONFIG_STR(SvClientSuggestion, sv_client_suggestion, 128, "Get DDNet client from DDNet.tw to use all features on DDNet!", CFGFLAG_SERVER, "Broadcast to display to players without DDNet client")
MACRO_CONFIG_STR(SvClientSuggestionOld, sv_client_suggestion_old, 128, "Your DDNet client is old, update it on DDNet.tw!", CFGFLAG_SERVER, "Broadcast to display to players with an old version of DDNet client")
MACRO_CONFIG_STR(SvClientSuggestionBot, sv_client_suggestion_bot, 128, "Your client has bots and can be remotely controlled!\nPlease use another client like DDNet client from DDNet.tw", CFGFLAG_SERVER, "Broadcast to display to players with a known botting client")
MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma seperated list of banned clients to be kicked on join")
MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma separated list of banned clients to be kicked on join")
// netlimit
MACRO_CONFIG_INT(SvNetlimit, sv_netlimit, 0, 0, 10000, CFGFLAG_SERVER, "Netlimit: Maximum amount of traffic a client is allowed to use (in kb/s)")