summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-08-04 11:36:44 -0400
committerMadCamel <madcamel@gmail.com>2010-08-04 11:36:44 -0400
commitcab33a7d731240fdf71f206f76190014811c8ecd (patch)
tree51490d55f890ad8b6d9c2f3be642caa9714b2be3
parent904ce5745d15e770ae9a0b153bdba0ada6b5ec84 (diff)
downloadtmwa-cab33a7d731240fdf71f206f76190014811c8ecd.tar.gz
tmwa-cab33a7d731240fdf71f206f76190014811c8ecd.tar.bz2
tmwa-cab33a7d731240fdf71f206f76190014811c8ecd.tar.xz
tmwa-cab33a7d731240fdf71f206f76190014811c8ecd.zip
Account ID is now logged in the GM log next to character name
This is so nobody gets too confused if a GM is doing @commands as an alternate character. Since account ID is public to anyone on the server anyway, it shouldn't be a security risk.
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 062e898..cfd46a7 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -643,8 +643,8 @@ void log_atcommand (struct map_session_data *sd, const char *fmt, ...)
vsnprintf (message, 511, fmt, ap);
va_end (ap);
- gm_log ("%s(%d,%d) %s : %s", map[sd->bl.m].name, sd->bl.x,
- sd->bl.y, sd->status.name, message);
+ gm_log ("%s(%d,%d) %s(%d) : %s", map[sd->bl.m].name, sd->bl.x,
+ sd->bl.y, sd->status.name, sd->status.account_id, message);
}
char *gm_logfile_name = NULL;