diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index ab42198..f5f7fc4 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -131,7 +131,10 @@ BUILDIN(npcTalk3) if (nd) { char message[500]; - strcpy (message, msg); + char name[500]; + strcpy (name, msg); + strtok(name, "#"); + strcpy (message, name); strcat (message, " : "); strcat (message, str); send_local_message (sd->fd, &(nd->bl), message); |