summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-14 06:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-20 01:21:13 +0300
commit7233ee5c6c14b9ac2bfad24fe7bb48400e9f52ae (patch)
treecafafcd379cc1c92b44c0541ca9e41c91bd8f69e /src/char
parent38914c4b3362a055468e3d3d8c26204c4a2d50d2 (diff)
downloadhercules-7233ee5c6c14b9ac2bfad24fe7bb48400e9f52ae.tar.gz
hercules-7233ee5c6c14b9ac2bfad24fe7bb48400e9f52ae.tar.bz2
hercules-7233ee5c6c14b9ac2bfad24fe7bb48400e9f52ae.tar.xz
hercules-7233ee5c6c14b9ac2bfad24fe7bb48400e9f52ae.zip
Dont show password and pincode in @accinfo gm command.
This need for better security.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/inter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index baa000d82..b095a046d 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -527,12 +527,15 @@ void mapif_parse_accinfo2(bool success, int map_fd, int u_fd, int u_aid, int acc
inter->msg_to_fd(map_fd, u_fd, u_aid, "-- Account %d --", account_id);
inter->msg_to_fd(map_fd, u_fd, u_aid, "User: %s | GM Group: %d | State: %d", userid, group_id, state);
+// enable this if you really know what you doing.
+#if 0
if (*user_pass != '\0') { /* password is only received if your gm level is greater than the one you're searching for */
if (pin_code && *pin_code != '\0')
inter->msg_to_fd(map_fd, u_fd, u_aid, "Password: %s (PIN:%s)", user_pass, pin_code);
else
inter->msg_to_fd(map_fd, u_fd, u_aid, "Password: %s", user_pass );
}
+#endif
inter->msg_to_fd(map_fd, u_fd, u_aid, "Account e-mail: %s | Birthdate: %s", email, birthdate);
inter->msg_to_fd(map_fd, u_fd, u_aid, "Last IP: %s (%s)", last_ip, geoip->getcountry(sockt->str2ip(last_ip)));