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:
Lee Salzman
2008-10-10 23:14:49 +00:00
parent 4dc6fcff3e
commit 86e14cc9fe
7 changed files with 15 additions and 24 deletions
+2 -2
View File
@@ -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)
{