diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-22 20:38:26 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-22 20:38:26 +0000 |
commit | 38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d (patch) | |
tree | 2ac7f91b25ed1c8da6e0e8bae0bb1e24b2c144d9 /src/map/pc.c | |
parent | 256a7ebe4e172686f547cf406fd642d6e76e4ed4 (diff) | |
download | hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.gz hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.bz2 hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.xz hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.zip |
- 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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 10 |
1 files changed, 4 insertions, 6 deletions
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; |