static char *dfile = NULL; if (!dfile) { dfile = g_build_filename (get_xdir (), "hexchat.conf", NULL); } return dfile; } /* Keep these sorted!! */ const struct prefs vars[] = { {"away_auto_unmark", P_OFFINT (hex_away_auto_unmark), TYPE_BOOL}, {"away_omit_alerts", P_OFFINT (hex_away_omit_alerts), TYPE_BOOL}, {"away_reason", P_OFFSET (hex_away_reason), TYPE_STR}, {"away_show_once", P_OFFINT (hex_away_show_once), TYPE_BOOL}, {"away_size_max", P_OFFINT (hex_away_size_max), TYPE_INT}, {"away_timeout", P_OFFINT (hex_away_timeout), TYPE_INT}, {"away_track", P_OFFINT (hex_away_track), TYPE_BOOL}, {"completion_amount", P_OFFINT (hex_completion_amount), TYPE_INT}, {"completion_auto", P_OFFINT (hex_completion_auto), TYPE_BOOL}, {"completion_sort", P_OFFINT (hex_completion_sort), TYPE_INT}, {"completion_suffix", P_OFFSET (hex_completion_suffix), TYPE_STR}, {"dcc_auto_chat", P_OFFINT (hex_dcc_auto_chat), TYPE_BOOL}, {"dcc_auto_recv", P_OFFINT (hex_dcc_auto_recv), TYPE_INT}, {"dcc_auto_resume", P_OFFINT (hex_dcc_auto_resume), TYPE_BOOL}, {"dcc_blocksize", P_OFFINT (hex_dcc_blocksize), TYPE_INT}, {"dcc_completed_dir", P_OFFSET (hex_dcc_completed_dir), TYPE_STR},
static char *dfile = 0; if (!dfile) { dfile = malloc (strlen (get_xdir_fs ()) + 12); sprintf (dfile, "%s/xchat.conf", get_xdir_fs ()); } return dfile; } /* Keep these sorted!! */ const struct prefs vars[] = { {"away_auto_unmark", P_OFFINT (auto_unmark_away), TYPE_BOOL}, {"away_omit_alerts", P_OFFINT (away_omit_alerts), TYPE_BOOL}, {"away_reason", P_OFFSET (awayreason), TYPE_STR}, {"away_show_message", P_OFFINT (show_away_message), TYPE_BOOL}, {"away_show_once", P_OFFINT (show_away_once), TYPE_BOOL}, {"away_size_max", P_OFFINT (away_size_max), TYPE_INT}, {"away_timeout", P_OFFINT (away_timeout), TYPE_INT}, {"away_track", P_OFFINT (away_track), TYPE_BOOL}, {"completion_amount", P_OFFINT (completion_amount), TYPE_INT}, {"completion_auto", P_OFFINT (nickcompletion), TYPE_BOOL}, {"completion_sort", P_OFFINT (completion_sort), TYPE_INT}, {"completion_suffix", P_OFFSET (nick_suffix), TYPE_STR}, {"dcc_auto_chat", P_OFFINT (autodccchat), TYPE_INT}, {"dcc_auto_resume", P_OFFINT (autoresume), TYPE_BOOL}, {"dcc_auto_send", P_OFFINT (autodccsend), TYPE_INT}, {"dcc_blocksize", P_OFFINT (dcc_blocksize), TYPE_INT},