diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emap/parse.c b/src/emap/parse.c index 7e45c5a..f034334 100644 --- a/src/emap/parse.c +++ b/src/emap/parse.c @@ -117,6 +117,9 @@ void map_parse_pet_say(int fd) if (!sd || !sd->pd) return; + if (!pc->can_talk(sd)) + return; + const int len = RFIFOW(fd, 2); if (len > 500 || len < 6) return; @@ -181,6 +184,8 @@ void map_parse_homun_say(int fd) TBL_PC* sd = (TBL_PC*)sockt->session[fd]->session_data; if (!sd) return; + if (!pc->can_talk(sd)) + return; const int len = RFIFOW(fd, 2); if (len > 500 || len < 6) return; |