summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-10-15 16:48:49 +0000
committerJared Adams <jaxad0127@gmail.com>2008-10-15 16:48:49 +0000
commit682749567e93d1e2282e5de150f3900a0ac5b4f8 (patch)
tree1b21bf0ce8ad87111ac65264a37c62b9d6eb8c7c /src/map/clif.c
parent8392585798dc7fb37a5ddd38ecde399ebf25b236 (diff)
downloadtmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.gz
tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.bz2
tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.tar.xz
tmwa-682749567e93d1e2282e5de150f3900a0ac5b4f8.zip
Make it easier to use NPCs without names
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 98dd0fc..ad750d4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7407,6 +7407,12 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) {
break;
case BL_NPC:
memcpy(WFIFOP(fd,6), ((struct npc_data*)bl)->name, 24);
+ {
+ char *end = strchr(WFIFOP(fd, 6), '#'); // elim hashed out/invisible names for the client
+ if (end)
+ while (*end)
+ *end++ = 0;
+ }
WFIFOSET(fd,packet_len_table[0x95]);
break;
case BL_MOB: