From 0a98391b9dba8f27a0c285fcdafc564d93a37e23 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 19 Oct 2006 21:25:56 +0000 Subject: - 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 --- src/map/charcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/charcommand.c') diff --git a/src/map/charcommand.c b/src/map/charcommand.c index c638bffa3..8264aa6ef 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -1008,7 +1008,7 @@ charcommand_giveitem_sub(struct map_session_data *sd,struct item_data *item_data } //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); } } @@ -1077,7 +1077,7 @@ int charcommand_item( //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_table[18]); // Item created. } else { -- cgit v1.2.3-70-g09d2