• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Invalid Characters

Status
Not open for further replies.

superoy

New Member
Joined
May 8, 2011
Messages
119
Reaction score
3
Hello, I downloaded an 9.86 OTX server and i'm editting it.
However I have a problem; either then I say ingame; 1,2,3,4,5,6,7,8,9,0,=,\,[,],;,:,<,>,,,.,/.
I receive a error in the bottom of your game-screen (wich usually says "Sorry, not possible.." now says (on using one of the above mentioned characters): "You can't send this message, forbidden characters."
I guess it should a script, wich I can either delete or alter. Anyways I can't seem to find it, any ideas?

Thanks in advance,
Yours,
Roy.
 
Thanks a bunch for the fast answer!
However my advertisingBlock is empty!
Any other ideas?

Thanks!
 
Well, you can always remove advertisingBlock from the source code.

configmanager.cpp
[CPP]m_confString[ADVERTISING_BLOCK] = getGlobalString("advertisingBlock", "");[/CPP]
configmanager.h
[CPP]ADVERTISING_BLOCK,[/CPP]
game.cpp
[CPP]
std::string _text = asLowerCaseString(text);
for(uint8_t i = 0; i < _text.length(); i++)
{
char t = _text;
if(t != '-' && t != '.' && !(t >= 'a' && t <= 'z'))
{
_text.erase(i, 1);
i--;
}
}

StringVec strVector;
strVector = explodeString(g_config.getString(ConfigManager::ADVERTISING_BLOCK), ";");
for(StringVec::iterator it = strVector.begin(); it != strVector.end(); ++it)
{
std::string words []= {(*it)};
int ii, length;
length = sizeof(words)/sizeof(words[0]);
for(ii=0; ii < int(length); ii++)
{
if (int(_text.find(words[ii])) > 0 || _text == words[ii])
{
player->sendTextMessage(MSG_STATUS_SMALL, "You can't send this message, forbidden characters.");
return false;
break;
}
}
}[/CPP]
 
Status
Not open for further replies.
Back
Top