From 6a342723edec2c88aceb023603e9b04cc5850bfe Mon Sep 17 00:00:00 2001 From: Vatiken Date: Thu, 22 Mar 2012 05:35:49 +0000 Subject: [PATCH] Updated whois to detail the 'victims' protocol information --- src/act.informative.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/act.informative.c b/src/act.informative.c index 3804638..4af64db 100644 --- a/src/act.informative.c +++ b/src/act.informative.c @@ -2438,6 +2438,17 @@ ACMD(do_whois) if (PLR_FLAGGED(victim, PLR_DELETED)) send_to_char (ch, "***DELETED***\r\n"); + if (!got_from_file && victim->desc != NULL && GET_LEVEL(ch) >= LVL_GOD) { + protocol_t * prot = victim->desc->pProtocol; + send_to_char(ch, "Client: %s\r\n", prot->pVariables[eMSDP_CLIENT_ID]->pValueString); + send_to_char(ch, "Color: %s\r\n", prot->pVariables[eMSDP_XTERM_256_COLORS] ? "Xterm" : (prot->pVariables[eMSDP_ANSI_COLORS] ? "Ansi" : "None")); + send_to_char(ch, "MXP: %s\r\n", prot->bMXP ? "Yes" : "No"); + send_to_char(ch, "Charset: %s\r\n", prot->bCHARSET ? "Yes" : "No"); + send_to_char(ch, "MSP: %s\r\n", prot->bMSP ? "Yes" : "No"); + send_to_char(ch, "ATCP: %s\r\n", prot->bATCP ? "Yes" : "No"); + send_to_char(ch, "MSDP: %s\r\n", prot->bMSDP ? "Yes" : "No"); + } + if (got_from_file) free_char (victim); }