summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-19 21:25:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-19 21:25:56 +0000
commit0a98391b9dba8f27a0c285fcdafc564d93a37e23 (patch)
tree06157117643325a15f5fd570767897856184e96b /src/map/atcommand.c
parentebed223aec7badf0b6ca7cf6e3341a5c81e7174d (diff)
downloadhercules-0a98391b9dba8f27a0c285fcdafc564d93a37e23.tar.gz
hercules-0a98391b9dba8f27a0c285fcdafc564d93a37e23.tar.bz2
hercules-0a98391b9dba8f27a0c285fcdafc564d93a37e23.tar.xz
hercules-0a98391b9dba8f27a0c285fcdafc564d93a37e23.zip
- Cleaned up the log.c file.
- Splitted log_pick into log_pick_pc and log_pick_mob to avoid ugly type-casting. - Fixed log_chat not recording anything if the server is compiled in SQL mode and sql_logs is turned off (it should then record to a plain txt file) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9017 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 71b7fca74..82d1b4c9a 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2639,7 +2639,7 @@ int atcommand_item(
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(sd, "A", 0, item_id, number, NULL);
+ log_pick_pc(sd, "A", item_id, number, NULL);
clif_displaymessage(fd, msg_txt(18)); // Item created.
return 0;
@@ -2714,7 +2714,7 @@ int atcommand_item2(
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(sd, "A", 0, item_tmp.nameid, number, &item_tmp);
+ log_pick_pc(sd, "A", item_tmp.nameid, number, &item_tmp);
clif_displaymessage(fd, msg_txt(18)); // Item created.
} else {
@@ -2741,7 +2741,7 @@ int atcommand_itemreset(
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(sd, "A", 0, sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
+ log_pick_pc(sd, "A", sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
pc_delitem(sd, i, sd->status.inventory[i].amount, 0);
}
@@ -3892,7 +3892,7 @@ int atcommand_produce(
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(sd, "A", 0, tmp_item.nameid, 1, &tmp_item);
+ log_pick_pc(sd, "A", tmp_item.nameid, 1, &tmp_item);
if ((flag = pc_additem(sd, &tmp_item, 1)))
clif_additem(sd, 0, 0, flag);
@@ -6399,7 +6399,7 @@ int atcommand_chardelitem(const int fd, struct map_session_data* sd,
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(pl_sd, "A", 0, pl_sd->status.inventory[item_position].nameid, -1, &pl_sd->status.inventory[item_position]);
+ log_pick_pc(pl_sd, "A", pl_sd->status.inventory[item_position].nameid, -1, &pl_sd->status.inventory[item_position]);
pc_delitem(pl_sd, item_position, 1, 0);
count++;
@@ -7704,7 +7704,7 @@ void getring (struct map_session_data *sd)
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
- log_pick(sd, "A", 0, item_id, 1, &item_tmp);
+ log_pick_pc(sd, "A", item_id, 1, &item_tmp);
if((flag = pc_additem(sd,&item_tmp,1))) {
clif_additem(sd,0,0,flag);