Topic: hide host ip from /games
I want to hide host ip or remove this tab from /games command resulte or make it just for admins
PvPGN Community Forums |
forums.pvpgn.pro → [EN] The Source Code → hide host ip from /games
I want to hide host ip or remove this tab from /games command resulte or make it just for admins
in commangrouds.conf, change this group to group 7 or 8
if you want to turn off, head to command.cpp and delete / games handle_game_command
I want to hide host ip or remove this tab from /games command resulte or make it just for admins
if (!(ip=account_get_ll_ip(account)) ||
!(account_get_command_groups(conn_get_account(c)) & command_get_group("/admin-addr"))) /* default to false */
ip = "unknown";
Added: 21.06.2013 16:31
if (!prefs_get_hide_addr() || (account_get_command_groups(conn_get_account(c)) & command_get_group("/admin-addr"))) /* default to false */
{
unsigned int addr;
unsigned short port;
unsigned int taddr;
unsigned short tport;
taddr=addr = game_get_addr(game);
tport=port = game_get_port(game);
trans_net(conn_get_addr(c),&taddr,&tport);
if (taddr==addr && tport==port)
sprintf(msgtemp,"Address: %s",
addr_num_to_addr_str(addr,port));
else
sprintf(msgtemp,"Address: %s (trans %s)",
addr_num_to_addr_str(addr,port),
addr_num_to_addr_str(taddr,tport));
message_send_text(c,message_type_info,c,msgtemp);
}
an other question ; how can change server name and replace all of PVPGN name and version ?!
an other question ; how can change server name and replace all of PVPGN name and version ?!
version.h
forums.pvpgn.pro → [EN] The Source Code → hide host ip from /games