summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-20 21:23:52 -0300
committershennetsind <ind@henn.et>2014-09-20 21:23:52 -0300
commitf806586acc2e34068b5e125661916caa594de04f (patch)
treec8e365d1b417cb889fca0a57192ee9d3005381ea /src/map/intif.c
parent7a76d8f3ce4f9cd54289c34c6dbc73cdce6e6496 (diff)
downloadhercules-f806586acc2e34068b5e125661916caa594de04f.tar.gz
hercules-f806586acc2e34068b5e125661916caa594de04f.tar.bz2
hercules-f806586acc2e34068b5e125661916caa594de04f.tar.xz
hercules-f806586acc2e34068b5e125661916caa594de04f.zip
Fixed Bug 8151
map server will no longer complain when it receives mail data for a character that is no longer online (its a pretty silly thing, consider you login, it requests mail data, you logout while it still hasn't arrived -> it annoys you with a warning when it arrives) Special Thanks to Frost! http://hercules.ws/board/tracker/issue-8151-at-first-time-show-error-in-console/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index be82a7583..fc38e82e3 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1567,10 +1567,8 @@ void intif_parse_MailInboxReceived(int fd) {
sd = map->charid2sd(RFIFOL(fd,4));
- if (sd == NULL) {
- ShowError("intif_parse_MailInboxReceived: char not found %d\n",RFIFOL(fd,4));
+ if (sd == NULL) /** user is not online anymore and its ok (quest log also does this) **/
return;
- }
if (RFIFOW(fd,2) - 9 != sizeof(struct mail_data)) {
ShowError("intif_parse_MailInboxReceived: data size mismatch %d != %"PRIuS"\n", RFIFOW(fd,2) - 9, sizeof(struct mail_data));