|
@@ -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;
|
|
|
|