1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

Fix ADD commands

This commit is contained in:
goaaats 2017-12-22 16:34:05 +01:00 committed by GitHub
parent 9c41c55092
commit dbac086121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,11 +302,8 @@ void Core::DebugCommandHandler::add( char * data, Entity::Player& player, boost:
// command has parameters, grab the first part
subCommand = tmpCommand.substr( 0, pos );
else
{
// no subcommand given
subCommand = tmpCommand;
return;
}
if( command->getName().length() + 1 + pos + 1 < strlen( data ) )
params = std::string( data + command->getName().length() + 1 + pos + 1 );