try some more stuff

This commit is contained in:
DarthArgus
2014-10-27 20:33:41 -07:00
parent 154aa76d66
commit 0c4829542d
6 changed files with 16 additions and 15 deletions
@@ -320,13 +320,13 @@ CentralCSHandler::~CentralCSHandler()
CS_CMD( login_character )
{
unsigned pos = request.getCommandString().find(" ");
const unsigned &pos = request.getCommandString().find(" ");
std::string id;
std::string account;
if(pos == std::string::npos)
return;
unsigned pos2 = request.getCommandString().find(" ", pos + 1 );
const unsigned &pos2 = request.getCommandString().find(" ", pos + 1 );
id = request.getCommandString().substr(pos, pos2 - pos);
account = request.getCommandString().substr(pos2 + 1);