diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 746a12a75..75cc51a24 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -13780,6 +13780,8 @@ void clif_parse_Mail_getattach(int fd, struct map_session_data *sd) int i; bool fail = false; + if( !chrif_isconnected() ) + return; if( mail_id <= 0 ) return; if( mail_invalid_operation(sd) ) @@ -13844,6 +13846,8 @@ void clif_parse_Mail_delete(int fd, struct map_session_data *sd) int mail_id = RFIFOL(fd,2); int i; + if( !chrif_isconnected() ) + return; if( mail_id <= 0 ) return; if( mail_invalid_operation(sd) ) @@ -13893,6 +13897,8 @@ void clif_parse_Mail_setattach(int fd, struct map_session_data *sd) int amount = RFIFOL(fd,4); unsigned char flag; + if( !chrif_isconnected() ) + return; if (idx < 0 || amount < 0) return; @@ -13925,6 +13931,8 @@ void clif_parse_Mail_send(int fd, struct map_session_data *sd) struct mail_message msg; int body_len; + if( !chrif_isconnected() ) + return; if( sd->state.trading ) return; |