summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-11-02 15:11:28 -0700
committerBen Longbons <b.r.longbons@gmail.com>2012-11-02 15:11:28 -0700
commit0a6a05ac62253edfcb23110b97d8126e22f40584 (patch)
treef617e9f7f13b5a015da920ff7f57bfb7b912dd7c
parent21742909143df9159b2401c3e2a39cc0b2bad620 (diff)
downloadtmwa-0a6a05ac62253edfcb23110b97d8126e22f40584.tar.gz
tmwa-0a6a05ac62253edfcb23110b97d8126e22f40584.tar.bz2
tmwa-0a6a05ac62253edfcb23110b97d8126e22f40584.tar.xz
tmwa-0a6a05ac62253edfcb23110b97d8126e22f40584.zip
Allow spaces in character names in a few more @commands
-rw-r--r--src/map/atcommand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 88e756d..0a18540 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -8137,7 +8137,7 @@ int atcommand_summon (const int fd, struct map_session_data *sd,
if (!message || !*message)
return -1;
- if (sscanf (message, "%99s", name) < 1)
+ if (sscanf (message, "%99[^\n]", name) < 1)
return -1;
if ((mob_id = atoi (name)) == 0)
@@ -8295,7 +8295,7 @@ atcommand_magic_info (const int fd, struct map_session_data *sd,
memset (character, '\0', sizeof (character));
- if (!message || !*message || sscanf (message, "%99s", character) < 1)
+ if (!message || !*message || sscanf (message, "%99[^\n]", character) < 1)
{
clif_displaymessage (fd, "Usage: @magicinfo <char_name>");
return -1;
@@ -8343,7 +8343,7 @@ atcommand_set_magic (const int fd, struct map_session_data *sd,
memset (character, '\0', sizeof (character));
if (!message || !*message
- || sscanf (message, "%19s %i %99s", magic_type, &value,
+ || sscanf (message, "%19s %i %99[^\n]", magic_type, &value,
character) < 1)
{
clif_displaymessage (fd,
@@ -8517,7 +8517,7 @@ int atcommand_skillpool_info (const int fd, struct map_session_data *sd,
char character[100];
struct map_session_data *pl_sd;
- if (!message || !*message || sscanf (message, "%99s", character) < 1)
+ if (!message || !*message || sscanf (message, "%99[^\n]", character) < 1)
{
clif_displaymessage (fd, "Usage: @sp-info <char_name>");
return -1;