summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-08 00:24:35 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-08 00:24:35 +0000
commitb0a605c97340b7248ab7902e5e17a2794449bc2d (patch)
tree78ed87ce9ed8d16b884410ddd6057a1b229d41b4
parente236c8d166bd55c674d3380c8c96d53031a4ede5 (diff)
downloadhercules-b0a605c97340b7248ab7902e5e17a2794449bc2d.tar.gz
hercules-b0a605c97340b7248ab7902e5e17a2794449bc2d.tar.bz2
hercules-b0a605c97340b7248ab7902e5e17a2794449bc2d.tar.xz
hercules-b0a605c97340b7248ab7902e5e17a2794449bc2d.zip
Added missing code to log main chat messages sent by whispering to main_chat_nick (bugreport:424)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12030 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/clif.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 2317b7f9a..651c64484 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,9 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2008/01/08
+ * Added missing code to log main chat messages sent by whispering
+ to main_chat_nick (bugreport:424) [ultramage]
2008/01/07
* Changed the code in status_change_timer so that a null pointer no longer
causes a crash but prints an error instead.
diff --git a/src/map/clif.c b/src/map/clif.c
index 70da31b53..bb1b6f964 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8455,6 +8455,11 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
snprintf(output, ARRAYLENGTH(output), msg_txt(386), sd->status.name, message);
intif_announce(output, strlen(output) + 1, 0xFE000000, 0);
}
+
+ // Chat logging type 'M' / Main Chat
+ if( log_config.chat&1 || (log_config.chat&32 && !(agit_flag && log_config.chat&64)) )
+ log_chat("M", 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message);
+
return;
}