diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-22 01:26:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-22 01:26:43 +0300 |
commit | 76012ffce8dbd8446a64f2bf66a5b14bb9df4071 (patch) | |
tree | ac03bf65881bca2fdc680b7e7bfab7ecba89246d | |
parent | d67d81e40903434be0543ef47fe16e0d1d01c31a (diff) | |
download | plugin-76012ffce8dbd8446a64f2bf66a5b14bb9df4071.tar.gz plugin-76012ffce8dbd8446a64f2bf66a5b14bb9df4071.tar.bz2 plugin-76012ffce8dbd8446a64f2bf66a5b14bb9df4071.tar.xz plugin-76012ffce8dbd8446a64f2bf66a5b14bb9df4071.zip |
remove all chars after # in nick in script command npctalk3.
-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); |