/[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.45 by flashcode, Wed Jan 26 22:21:58 2005 UTC revision 1.46 by flashcode, Sat Feb 5 17:39:49 2005 UTC
# Line 465  int cfg_irc_display_away; Line 465  int cfg_irc_display_away;
465  char *cfg_irc_default_msg_away;  char *cfg_irc_default_msg_away;
466  char *cfg_irc_default_msg_part;  char *cfg_irc_default_msg_part;
467  char *cfg_irc_default_msg_quit;  char *cfg_irc_default_msg_quit;
468    int cfg_irc_away_check;
469  int cfg_irc_lag_check;  int cfg_irc_lag_check;
470  int cfg_irc_lag_min_show;  int cfg_irc_lag_min_show;
471  int cfg_irc_lag_disconnect;  int cfg_irc_lag_disconnect;
# Line 486  t_config_option weechat_options_irc[] = Line 487  t_config_option weechat_options_irc[] =
487      N_("default quit message ('%v' will be replaced by WeeChat version in string)"),      N_("default quit message ('%v' will be replaced by WeeChat version in string)"),
488      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
489      "WeeChat %v", NULL, NULL, &cfg_irc_default_msg_quit, config_change_noop },      "WeeChat %v", NULL, NULL, &cfg_irc_default_msg_quit, config_change_noop },
490      { "irc_away_check", N_("interval between two checks for away"),
491        N_("interval between two checks for away (in minutes, 0 = never check)"),
492        OPTION_TYPE_INT, 0, INT_MAX, 1,
493        NULL, NULL, &cfg_irc_away_check, NULL, config_change_away_check },
494    { "irc_lag_check", N_("interval between two checks for lag"),    { "irc_lag_check", N_("interval between two checks for lag"),
495      N_("interval between two checks for lag (in seconds)"),      N_("interval between two checks for lag (in seconds)"),
496      OPTION_TYPE_INT, 30, INT_MAX, 60,      OPTION_TYPE_INT, 30, INT_MAX, 60,
# Line 749  config_change_buffer_content () Line 754  config_change_buffer_content ()
754   */   */
755    
756  void  void
757  config_change_color()  config_change_color ()
758  {  {
759      gui_init_colors ();      gui_init_colors ();
760  }  }
761    
762  /*  /*
763     * config_change_away_check: called when away check is changed
764     */
765    
766    void
767    config_change_away_check ()
768    {
769        check_away = 0;
770        if (cfg_irc_away_check == 0)
771        {
772            /* reset away flag for all nicks/chans/servers */
773            server_remove_away ();
774        }
775    }
776    
777    /*
778   * config_option_set_value: set new value for an option   * config_option_set_value: set new value for an option
779   *                          return:  0 if success   *                          return:  0 if success
780   *                                  -1 if error (bad value)   *                                  -1 if error (bad value)

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

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