summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
+ }
}
/*==========================================