A very simple snippet that will allow some commands to go through even though the player wait for the end of a command.
I test all my code through Valgrind for memory leak, but that does not mean I thought of every possible cases.
I hate C string manipulation,and I am a Java coder so take all my code with a grain of salt.
And indeed there were some problems…here is an updated version that has not given me any problem yet (should have update this along time ago)
And I added the possibility to resume the command list if you killed it for any reason (need to add a char* resume field in the char_data)