mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-01 15:08:49 +01:00
Updated whois to detail the 'victims' protocol information
This commit is contained in:
parent
61f538c112
commit
6a342723ed
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue