Updated whois to detail the 'victims' protocol information

This commit is contained in:
Vatiken 2012-03-22 05:35:49 +00:00
parent 61f538c112
commit 6a342723ed

View file

@ -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);
}