summaryrefslogtreecommitdiff
path: root/src/map/mail.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-04 03:54:35 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-04 03:54:35 +0000
commitaf2b53402574753a76e39c09e514118a06d9420f (patch)
treec1aeef63833d2bdd52f8bb6868edf9e71516b801 /src/map/mail.c
parent2e6c05b6b1ec4a13c2f01916fc0b6d55ac806ad9 (diff)
downloadhercules-af2b53402574753a76e39c09e514118a06d9420f.tar.gz
hercules-af2b53402574753a76e39c09e514118a06d9420f.tar.bz2
hercules-af2b53402574753a76e39c09e514118a06d9420f.tar.xz
hercules-af2b53402574753a76e39c09e514118a06d9420f.zip
added missing 'e' logs
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12910 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mail.c')
-rw-r--r--src/map/mail.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/map/mail.c b/src/map/mail.c
index 6fa605bb8..d77dbe6b4 100644
--- a/src/map/mail.c
+++ b/src/map/mail.c
@@ -55,8 +55,12 @@ int mail_removezeny(struct map_session_data *sd, short flag)
nullpo_retr(0,sd);
if (flag && sd->mail.zeny > 0)
- sd->status.zeny -= sd->mail.zeny;
+ { //Zeny send
+ if(log_config.zeny)
+ log_zeny(sd, "E", sd, -sd->mail.zeny);
+ sd->status.zeny -= sd->mail.zeny;
+ }
sd->mail.zeny = 0;
clif_updatestatus(sd, SP_ZENY);
@@ -146,7 +150,11 @@ void mail_getattachment(struct map_session_data* sd, int zeny, struct item* item
}
if( zeny > 0 )
+ { //Zeny recieve
+ if(log_config.zeny)
+ log_zeny(sd, "E", sd, zeny);
pc_getzeny(sd, zeny);
+ }
}
int mail_openmail(struct map_session_data *sd)
@@ -166,10 +174,18 @@ void mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg)
nullpo_retv(sd);
nullpo_retv(msg);
+ // Item recieve (due to failure)
+ if(log_config.enable_logs&0x2000)
+ log_pick_pc(sd, "E", msg->item.nameid, msg->item.amount, &msg->item);
+
pc_additem(sd, &msg->item, msg->item.amount);
if( msg->zeny > 0 )
{
+ //Zeny recieve (due to failure)
+ if(log_config.zeny)
+ log_zeny(sd, "E", sd, msg->zeny);
+
sd->status.zeny += msg->zeny;
clif_updatestatus(sd, SP_ZENY);
}