diff options
author | MadCamel <madcamel@gmail.com> | 2009-05-04 09:46:31 -0400 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-04 07:56:18 -0600 |
commit | fa939d8917abe20709ad72c40496b083cea5f86f (patch) | |
tree | 2e4ee86e2810e165a2ed11b22a72f83eb7bd87e3 /src/map/tmw.c | |
parent | 9e62b627642fb45f39ea948546be3c3dd1e6dd3d (diff) | |
download | tmwa-fa939d8917abe20709ad72c40496b083cea5f86f.tar.gz tmwa-fa939d8917abe20709ad72c40496b083cea5f86f.tar.bz2 tmwa-fa939d8917abe20709ad72c40496b083cea5f86f.tar.xz tmwa-fa939d8917abe20709ad72c40496b083cea5f86f.zip |
Added @wgm command to whisper all online GMs (if any)
Diffstat (limited to 'src/map/tmw.c')
-rw-r--r-- | src/map/tmw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/tmw.c b/src/map/tmw.c index da43138..6a2df32 100644 --- a/src/map/tmw.c +++ b/src/map/tmw.c @@ -112,5 +112,9 @@ void tmw_GmHackMsg(const char *fmt, ...) { vsnprintf(buf, 511, fmt, ap); va_end(ap); - intif_wis_message_to_gm(wisp_server_name, battle_config.hack_info_GM_level, buf, strlen(buf) + 1); + char outbuf[512+5]; + strcat(outbuf, "[GM] "); + strcat(outbuf, buf); + + intif_wis_message_to_gm(wisp_server_name, battle_config.hack_info_GM_level, outbuf, strlen(outbuf) + 1); } |