diff options
Diffstat (limited to 'src/map/mail.c')
-rw-r--r-- | src/map/mail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/mail.c b/src/map/mail.c index 6244a57c7..1f25861c1 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -330,7 +330,10 @@ int mail_check_timer(int tid,unsigned int tick,int id,int data) while ((mail_row = mysql_fetch_row(mail_res))) {
for (i = 0; i < fd_max; i++) {
- if (session[i] && (sd = (struct map_session_data *) session[i]->session_data) && sd->state.auth){
+ if (session[i] && session[i]->func_parse == clif_parse &&
+ (sd = (struct map_session_data *) session[i]->session_data) &&
+ sd->state.auth)
+ {
if(pc_isGM(sd) < 80 && sd->mail_counter > 0)
sd->mail_counter--;
if(sd->status.account_id==atoi(mail_row[0]))
|