mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-30 00:15:47 -04:00
try some more stuff
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user