1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 16:57:47 +00:00

Merge pull request #206 from goaaats/patch-1

Fix ADD commands
This commit is contained in:
Mordred 2017-12-25 00:30:21 +01:00 committed by GitHub
commit 39a7b7bc3c

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 );