瀏覽代碼

Added missing code to log main chat messages sent by whispering to main_chat_nick (bugreport:424)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12030 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 年之前
父節點
當前提交
d3ff689c2b
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 3 0
      Changelog-Trunk.txt
  2. 5 0
      src/map/clif.c

+ 3 - 0
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.

+ 5 - 0
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;
 	}