/[weechat]/weechat/src/common/weeconfig.c
ViewVC logotype

Diff of /weechat/src/common/weeconfig.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.64 by flashcode, Thu Jun 30 12:55:37 2005 UTC revision 1.65 by kolter, Thu Jun 30 19:22:01 2005 UTC
# Line 597  t_config_option weechat_options_dcc[] = Line 597  t_config_option weechat_options_dcc[] =
597  /* config, proxy section */  /* config, proxy section */
598    
599  int cfg_proxy_use;  int cfg_proxy_use;
600    int cfg_proxy_type;
601    int cfg_proxy_ipv6;
602    char *cfg_proxy_type_values[] =
603    { "http", "socks4", "socks5", NULL };
604  char *cfg_proxy_address;  char *cfg_proxy_address;
605  int cfg_proxy_port;  int cfg_proxy_port;
606    char *cfg_proxy_username;
607  char *cfg_proxy_password;  char *cfg_proxy_password;
608    
609  t_config_option weechat_options_proxy[] =  t_config_option weechat_options_proxy[] =
# Line 606  t_config_option weechat_options_proxy[] Line 611  t_config_option weechat_options_proxy[]
611      N_("use a proxy server to connect to irc server"),      N_("use a proxy server to connect to irc server"),
612      OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE,      OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE,
613      NULL, NULL, &cfg_proxy_use, NULL, config_change_noop },      NULL, NULL, &cfg_proxy_use, NULL, config_change_noop },
614      { "proxy_type", N_("proxy type"),
615        N_("proxy type (http (default), socks4, socks5)"),
616        OPTION_TYPE_INT_WITH_STRING, 0, 0, 0,
617        "http", cfg_proxy_type_values, &cfg_proxy_type, NULL, config_change_noop },
618      { "proxy_ipv6", N_("use ipv6 proxy"),
619        N_("connect to proxy in ipv6"),
620        OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE,
621        NULL, NULL, &cfg_proxy_ipv6, NULL, config_change_noop },
622    { "proxy_address", N_("proxy address"),    { "proxy_address", N_("proxy address"),
623      N_("proxy server address (IP or hostname)"),      N_("proxy server address (IP or hostname)"),
624      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
625      "", NULL, NULL, &cfg_proxy_address, config_change_noop },      "", NULL, NULL, &cfg_proxy_address, config_change_noop },
626    { "proxy_port", N_("port for proxy"),    { "proxy_port", N_("port for proxy"),
627      N_("port for connecting to proxy server"),      N_("port for connecting to proxy server"),
628      OPTION_TYPE_INT, 0, 65535, 1080,      OPTION_TYPE_INT, 0, 65535, 3128,
629      NULL, NULL, &cfg_proxy_port, NULL, config_change_noop },      NULL, NULL, &cfg_proxy_port, NULL, config_change_noop },
630      { "proxy_username", N_("proxy username"),
631        N_("username for proxy server"),
632        OPTION_TYPE_STRING, 0, 0, 0,
633        "", NULL, NULL, &cfg_proxy_username, config_change_noop },
634    { "proxy_password", N_("proxy password"),    { "proxy_password", N_("proxy password"),
635      N_("password for proxy server"),      N_("password for proxy server"),
636      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
# Line 1506  config_create_default () Line 1523  config_create_default ()
1523          if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER))          if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER))
1524          {          {
1525              fprintf (file, "\n[%s]\n", config_sections[i].section_name);              fprintf (file, "\n[%s]\n", config_sections[i].section_name);
             if (i == CONFIG_SECTION_PROXY)  
                 fprintf (file,  
                          "# WARNING!!! Options for section \"%s\" are not developed!\n",  
                          config_sections[i].section_name);  
1526              for (j = 0; weechat_options[i][j].option_name; j++)              for (j = 0; weechat_options[i][j].option_name; j++)
1527              {              {
1528                  switch (weechat_options[i][j].option_type)                  switch (weechat_options[i][j].option_type)
# Line 1680  config_write (char *config_name) Line 1693  config_write (char *config_name)
1693          if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER))          if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER))
1694          {          {
1695              fprintf (file, "\n[%s]\n", config_sections[i].section_name);              fprintf (file, "\n[%s]\n", config_sections[i].section_name);
             if (i == CONFIG_SECTION_PROXY)  
                 fprintf (file,  
                          "# WARNING!!! Options for section \"%s\" are not developed!\n",  
                          config_sections[i].section_name);  
1696              for (j = 0; weechat_options[i][j].option_name; j++)              for (j = 0; weechat_options[i][j].option_name; j++)
1697              {              {
1698                  switch (weechat_options[i][j].option_type)                  switch (weechat_options[i][j].option_type)

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26