Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → hide host ip from /games

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 5

1

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

2

Re: hide host ip from /games

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

3

Re: hide host ip from /games

leop wrote:

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

4

Re: hide host ip from /games

an other question ;  how can change server name and replace all of PVPGN name and version ?!

5

Re: hide host ip from /games

leop wrote:

an other question ;  how can change server name and replace all of PVPGN name and version ?!

version.h

Posts: 5

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → hide host ip from /games