diff options
author | Maximilian Philipps <Turmfalke2007@web.de> | 2009-07-26 00:27:41 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-07-27 12:24:38 +0200 |
commit | 3b44872c6d1601abe33115a92cbb8e3e13d2bea5 (patch) | |
tree | 7be631639c69a5f67d3647d8356ebb382ffeffc3 /src/map/clif.c | |
parent | 2a93e0b7396b78d5a09927a552dd05e862277b50 (diff) | |
download | tmwa-3b44872c6d1601abe33115a92cbb8e3e13d2bea5.tar.gz tmwa-3b44872c6d1601abe33115a92cbb8e3e13d2bea5.tar.bz2 tmwa-3b44872c6d1601abe33115a92cbb8e3e13d2bea5.tar.xz tmwa-3b44872c6d1601abe33115a92cbb8e3e13d2bea5.zip |
prevent dead players from talking
cause it is annoying when a skull kills them and they keep talking like nothing happend.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 9357084..908e9ff 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6507,7 +6507,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < if (malformed || !magic_message(sd, buf, msg_len)) { tmw_CheckChatSpam(sd, RFIFOP(fd,4)); - if (malformed) { + if ((malformed)||(pc_isdead(sd))) { free(buf); return; } |