more filtertext whitespace options
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2904 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -247,7 +247,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
{
|
||||
d = newclient(cn);
|
||||
getstring(text, p);
|
||||
filtertext(text, text, false, MAXNAMELEN);
|
||||
filtertext(text, text, 0, MAXNAMELEN);
|
||||
if(!text[0]) s_strcpy(text, "unarmed");
|
||||
if(d->name[0]) // already connected
|
||||
{
|
||||
@@ -261,7 +261,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
}
|
||||
s_strncpy(d->name, text, MAXNAMELEN+1);
|
||||
getstring(text, p);
|
||||
filtertext(d->team, text, false, MAXTEAMLEN);
|
||||
filtertext(d->team, text, 0, MAXTEAMLEN);
|
||||
setskin(d, getint(p));
|
||||
if(m_flags) loopi(2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user