From 38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 22 Oct 2007 20:38:26 +0000 Subject: - Added the new mail system. Requires optimization and tests. - Updated the maildb sql structure. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11548 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 733f31d0a..a984796ae 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -633,6 +633,7 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t sd->canuseitem_tick = tick; sd->cantalk_tick = tick; + sd->cansendmail_tick = tick; for(i = 0; i < MAX_SKILL_LEVEL; i++) sd->spirit_timer[i] = -1; @@ -743,11 +744,6 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t clif_displaymessage(sd->fd, motd_text[i]); } -#ifndef TXT_ONLY - if(mail_server_enable) - mail_check(sd,0); // check mail at login [Valaris] -#endif - // message of the limited time of the account if (connect_until_time != 0) { // don't display if it's unlimited or unknow value char tmpstr[1024]; @@ -886,7 +882,9 @@ int pc_reg_received(struct map_session_data *sd) status_calc_pc(sd,1); chrif_scdata_request(sd->status.account_id, sd->status.char_id); - +#ifndef TXT_ONLY + intif_Mail_requestinbox(sd->status.char_id, 0); // MAIL SYSTEM - Request Mail Inbox +#endif if (!sd->state.connect_new && sd->fd) { //Character already loaded map! Gotta trigger LoadEndAck manually. sd->state.connect_new = 1; -- cgit v1.2.3-70-g09d2