summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}