Fixed atcommand where parsing

* Fixes #2675.
* Resolves atcommand where not accepting players with spaces in their name.
Thanks to @Tokeiburu!
This commit is contained in:
aleos89 2017-12-04 13:26:21 -05:00
parent 44ddc9fd15
commit c5b7850a9a

View File

@ -513,7 +513,7 @@ ACMD_FUNC(where)
nullpo_retr(-1, sd);
memset(atcmd_player_name, '\0', sizeof atcmd_player_name);
if (!message || !*message || sscanf(message, "%23s[^\n]", atcmd_player_name) < 1) {
if (!message || !*message || sscanf(message, "%23[^\n]", atcmd_player_name) < 1) {
clif_displaymessage(fd, msg_txt(sd,910)); // Please enter a player name (usage: @where <char name>).
return -1;
}