some flag score fix, and whois -1 command (for admins only): it shows all ips of all player, line by line
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5225 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1094,8 +1094,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
int cn = getint(p);
|
||||
playerent *pl = cn == getclientnum() ? player1 : getclient(cn);
|
||||
int ip = getint(p);
|
||||
if((ip>>16&0xFF) > 0 && (ip>>24&0xFF) > 0) conoutf(_("WHOIS client %d:\n\f5name\t%s\n\f5IP\t%d.%d.%d.%d"), cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF, ip>>16&0xFF, ip>>24&0xFF); // full IP
|
||||
else conoutf(_("WHOIS client %d:\n\f5name\t%s\n\f5IP\t%d.%d.x.x"), cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF); // censored IP
|
||||
if((ip>>16&0xFF) > 0 && (ip>>24&0xFF) > 0) conoutf("WHOIS %2d: %-16s %d.%d.%d.%d", cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF, ip>>16&0xFF, ip>>24&0xFF); // full IP
|
||||
else conoutf("WHOIS client %d:\n\f5name\t%s\n\f5IP\t%d.%d.x.x", cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF); // censored IP
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user