replace textfilter functions with one-fits-all version
* replaces filtertext() with a version with a dozen of single filters that can be used in any combination * defines classes of allowed characters for strings for various uses (see protocol.h line 153ff) * now the allowed charset of, for example, player names is defined in one location only * fixes issue #58
This commit is contained in:
@@ -170,7 +170,7 @@ static inline void updatemasterserver(int millis, int port)
|
||||
{
|
||||
if(!lastupdatemaster || ((millis-lastupdatemaster)>40*60*1000 && (interm || !totalclients)))
|
||||
{
|
||||
char servername[30]; memset(servername,'\0',30); filtertext(servername,global_name,-1,20);
|
||||
char servername[30]; memset(servername,'\0',30); filtertext(servername, global_name, FTXT__GLOBALNAME, 20);
|
||||
if(mastername[0]) requestmasterf("regserv %d %s %d\n", port, servername[0] ? servername : "noname", AC_VERSION);
|
||||
lastupdatemaster = millis + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user