summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-26 15:02:11 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-26 15:02:11 -0600
commit6ff9a550e3f22eaa906722143f94b75666ebbd30 (patch)
tree57e8ffc20b997ad427af05c7fb288cf62e5c51b2
parent423715cfc4e9060a2ad4fc37da2dd025aec233cd (diff)
downloadtmwa-6ff9a550e3f22eaa906722143f94b75666ebbd30.tar.gz
tmwa-6ff9a550e3f22eaa906722143f94b75666ebbd30.tar.bz2
tmwa-6ff9a550e3f22eaa906722143f94b75666ebbd30.tar.xz
tmwa-6ff9a550e3f22eaa906722143f94b75666ebbd30.zip
Log /announce calls
-rw-r--r--src/map/clif.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 14f2770..5a372e7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6801,12 +6801,17 @@ void clif_parse_Wis(int fd, struct map_session_data *sd) { // S 0096 <len>.w <ni
*------------------------------------------
*/
void clif_parse_GMmessage(int fd, struct map_session_data *sd) {
-// /b
+ char m[512];
nullpo_retv(sd);
if ((battle_config.atc_gmonly == 0 || pc_isGM(sd)) &&
(pc_isGM(sd) >= get_atcommand_level(AtCommand_Broadcast)))
+ {
intif_GMmessage(RFIFOP(fd,4), RFIFOW(fd,2)-4, 0);
+ strncpy(m, RFIFOP(fd,4), RFIFOW(fd,2) - 4);
+ m[RFIFOW(fd,2) - 4] = 0;
+ log_atcommand(sd, "/announce %s", m);
+ }
}
/*==========================================