97 |
int cfg_look_hotlist_names_length; |
int cfg_look_hotlist_names_length; |
98 |
int cfg_look_day_change; |
int cfg_look_day_change; |
99 |
char *cfg_look_day_change_timestamp; |
char *cfg_look_day_change_timestamp; |
100 |
|
char *cfg_look_read_marker; |
101 |
|
|
102 |
t_config_option weechat_options_look[] = |
t_config_option weechat_options_look[] = |
103 |
{ { "look_set_title", N_("set title for window (terminal for Curses GUI) with name & version"), |
{ { "look_set_title", N_("set title for window (terminal for Curses GUI) with name & version"), |
230 |
N_("timestamp for date displayed when day changed"), |
N_("timestamp for date displayed when day changed"), |
231 |
OPTION_TYPE_STRING, 0, 0, 0, |
OPTION_TYPE_STRING, 0, 0, 0, |
232 |
"%a, %d %b %Y", NULL, NULL, &cfg_look_day_change_timestamp, config_change_noop }, |
"%a, %d %b %Y", NULL, NULL, &cfg_look_day_change_timestamp, config_change_noop }, |
233 |
|
{ "look_read_marker", N_("use a marker on servers/channels to show first unread line"), |
234 |
|
N_("use a marker on servers/channels to show first unread line"), |
235 |
|
OPTION_TYPE_STRING, 0, 0, 0, |
236 |
|
" ", NULL, NULL, &cfg_look_read_marker, config_change_read_marker}, |
237 |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL } |
238 |
}; |
}; |
239 |
|
|
256 |
int cfg_col_chat_dark; |
int cfg_col_chat_dark; |
257 |
int cfg_col_chat_highlight; |
int cfg_col_chat_highlight; |
258 |
int cfg_col_chat_bg; |
int cfg_col_chat_bg; |
259 |
|
int cfg_col_chat_marker; |
260 |
|
int cfg_col_chat_marker_bg; |
261 |
int cfg_col_status; |
int cfg_col_status; |
262 |
int cfg_col_status_delimiters; |
int cfg_col_status_delimiters; |
263 |
int cfg_col_status_channel; |
int cfg_col_status_channel; |
372 |
N_("background for chat window"), |
N_("background for chat window"), |
373 |
OPTION_TYPE_COLOR, 0, 0, 0, |
OPTION_TYPE_COLOR, 0, 0, 0, |
374 |
"default", NULL, &cfg_col_chat_bg, NULL, &config_change_color }, |
"default", NULL, &cfg_col_chat_bg, NULL, &config_change_color }, |
375 |
|
{ "col_chat_marker", N_("color for unread data marker"), |
376 |
|
N_("color for unread data marker"), |
377 |
|
OPTION_TYPE_COLOR, 0, 0, 0, |
378 |
|
"yellow", NULL, &cfg_col_chat_marker, NULL, &config_change_color }, |
379 |
|
{ "col_chat_marker_bg", N_("background for unread data marker"), |
380 |
|
N_("background for unread data marker"), |
381 |
|
OPTION_TYPE_COLOR, 0, 0, 0, |
382 |
|
"magenta", NULL, &cfg_col_chat_marker_bg, NULL, &config_change_color }, |
383 |
|
|
384 |
/* status window */ |
/* status window */ |
385 |
{ "col_status", N_("color for status bar"), |
{ "col_status", N_("color for status bar"), |
1048 |
} |
} |
1049 |
|
|
1050 |
/* |
/* |
1051 |
|
* config_change_read_marker: called when read marker is changed |
1052 |
|
*/ |
1053 |
|
|
1054 |
|
void |
1055 |
|
config_change_read_marker () |
1056 |
|
{ |
1057 |
|
t_gui_window *ptr_win; |
1058 |
|
|
1059 |
|
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) |
1060 |
|
gui_redraw_buffer (ptr_win->buffer); |
1061 |
|
} |
1062 |
|
|
1063 |
|
/* |
1064 |
* config_change_charset: called when charset changes |
* config_change_charset: called when charset changes |
1065 |
*/ |
*/ |
1066 |
|
|
1708 |
{ |
{ |
1709 |
pos[0] = '\0'; |
pos[0] = '\0'; |
1710 |
pos++; |
pos++; |
1711 |
|
|
1712 |
|
/* remove spaces before '=' */ |
1713 |
|
pos2 = pos - 2; |
1714 |
|
while ((pos2 > line) && (pos2[0] == ' ')) |
1715 |
|
{ |
1716 |
|
pos2[0] = '\0'; |
1717 |
|
pos2--; |
1718 |
|
} |
1719 |
|
|
1720 |
|
/* skip spaces after '=' */ |
1721 |
|
while (pos[0] && (pos[0] == ' ')) |
1722 |
|
{ |
1723 |
|
pos++; |
1724 |
|
} |
1725 |
|
|
1726 |
|
/* remove CR/LF */ |
1727 |
pos2 = strchr (pos, '\r'); |
pos2 = strchr (pos, '\r'); |
1728 |
if (pos2 != NULL) |
if (pos2 != NULL) |
1729 |
pos2[0] = '\0'; |
pos2[0] = '\0'; |
1731 |
if (pos2 != NULL) |
if (pos2 != NULL) |
1732 |
pos2[0] = '\0'; |
pos2[0] = '\0'; |
1733 |
|
|
1734 |
|
/* remove simple or double quotes |
1735 |
|
and spaces at the end */ |
1736 |
|
if (strlen(pos) > 1) |
1737 |
|
{ |
1738 |
|
pos2 = pos + strlen (pos) - 1; |
1739 |
|
while ((pos2 > pos) && (pos2[0] == ' ')) |
1740 |
|
{ |
1741 |
|
pos2[0] = '\0'; |
1742 |
|
pos2--; |
1743 |
|
} |
1744 |
|
pos2 = pos + strlen (pos) - 1; |
1745 |
|
if (((pos[0] == '\'') && |
1746 |
|
(pos2[0] == '\'')) || |
1747 |
|
((pos[0] == '"') && |
1748 |
|
(pos2[0] == '"'))) |
1749 |
|
{ |
1750 |
|
pos2[0] = '\0'; |
1751 |
|
pos++; |
1752 |
|
} |
1753 |
|
} |
1754 |
|
|
1755 |
if (section == CONFIG_SECTION_KEYS) |
if (section == CONFIG_SECTION_KEYS) |
1756 |
{ |
{ |
1757 |
if (pos[0]) |
if (pos[0]) |
1940 |
switch (weechat_options[i][j].option_type) |
switch (weechat_options[i][j].option_type) |
1941 |
{ |
{ |
1942 |
case OPTION_TYPE_BOOLEAN: |
case OPTION_TYPE_BOOLEAN: |
1943 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = %s\n", |
1944 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
1945 |
(weechat_options[i][j].default_int) ? |
(weechat_options[i][j].default_int) ? |
1946 |
"on" : "off"); |
"on" : "off"); |
1947 |
break; |
break; |
1948 |
case OPTION_TYPE_INT: |
case OPTION_TYPE_INT: |
1949 |
fprintf (file, "%s=%d\n", |
fprintf (file, "%s = %d\n", |
1950 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
1951 |
weechat_options[i][j].default_int); |
weechat_options[i][j].default_int); |
1952 |
break; |
break; |
1953 |
case OPTION_TYPE_INT_WITH_STRING: |
case OPTION_TYPE_INT_WITH_STRING: |
1954 |
case OPTION_TYPE_COLOR: |
case OPTION_TYPE_COLOR: |
1955 |
|
fprintf (file, "%s = %s\n", |
1956 |
|
weechat_options[i][j].option_name, |
1957 |
|
weechat_options[i][j].default_string); |
1958 |
|
break; |
1959 |
case OPTION_TYPE_STRING: |
case OPTION_TYPE_STRING: |
1960 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
1961 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
1962 |
weechat_options[i][j].default_string); |
weechat_options[i][j].default_string); |
1963 |
break; |
break; |
1975 |
{ |
{ |
1976 |
function_name = gui_key_function_search_by_ptr (ptr_key->function); |
function_name = gui_key_function_search_by_ptr (ptr_key->function); |
1977 |
if (function_name) |
if (function_name) |
1978 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
1979 |
(expanded_name) ? expanded_name : ptr_key->key, |
(expanded_name) ? expanded_name : ptr_key->key, |
1980 |
function_name); |
function_name); |
1981 |
} |
} |
1982 |
else |
else |
1983 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
1984 |
(expanded_name) ? expanded_name : ptr_key->key, |
(expanded_name) ? expanded_name : ptr_key->key, |
1985 |
ptr_key->command); |
ptr_key->command); |
1986 |
if (expanded_name) |
if (expanded_name) |
1989 |
|
|
1990 |
/* default aliases */ |
/* default aliases */ |
1991 |
fprintf (file, "\n[alias]\n"); |
fprintf (file, "\n[alias]\n"); |
1992 |
fprintf (file, "SAY=msg *\n"); |
fprintf (file, "SAY = \"msg *\"\n"); |
1993 |
fprintf (file, "BYE=quit\n"); |
fprintf (file, "BYE = \"quit\"\n"); |
1994 |
fprintf (file, "EXIT=quit\n"); |
fprintf (file, "EXIT = \"quit\"\n"); |
1995 |
fprintf (file, "SIGNOFF=quit\n"); |
fprintf (file, "SIGNOFF = \"quit\"\n"); |
1996 |
fprintf (file, "C=clear\n"); |
fprintf (file, "C = \"clear\"\n"); |
1997 |
fprintf (file, "CL=clear\n"); |
fprintf (file, "CL = \"clear\"\n"); |
1998 |
fprintf (file, "CLOSE=buffer close\n"); |
fprintf (file, "CLOSE = \"buffer close\"\n"); |
1999 |
fprintf (file, "CHAT=dcc chat\n"); |
fprintf (file, "CHAT = \"dcc chat\"\n"); |
2000 |
fprintf (file, "IG=ignore\n"); |
fprintf (file, "IG = \"ignore\"\n"); |
2001 |
fprintf (file, "J=join\n"); |
fprintf (file, "J = \"join\"\n"); |
2002 |
fprintf (file, "K=kick\n"); |
fprintf (file, "K = \"kick\"\n"); |
2003 |
fprintf (file, "KB=kickban\n"); |
fprintf (file, "KB = \"kickban\"\n"); |
2004 |
fprintf (file, "LEAVE=part\n"); |
fprintf (file, "LEAVE = \"part\"\n"); |
2005 |
fprintf (file, "M=msg\n"); |
fprintf (file, "M = \"msg\"\n"); |
2006 |
fprintf (file, "MUB=unban *\n"); |
fprintf (file, "MUB = \"unban *\"\n"); |
2007 |
fprintf (file, "N=names\n"); |
fprintf (file, "N = \"names\"\n"); |
2008 |
fprintf (file, "Q=query\n"); |
fprintf (file, "Q = \"query\"\n"); |
2009 |
fprintf (file, "T=topic\n"); |
fprintf (file, "T = \"topic\"\n"); |
2010 |
fprintf (file, "UB=unban\n"); |
fprintf (file, "UB = \"unban\"\n"); |
2011 |
fprintf (file, "UNIG=unignore\n"); |
fprintf (file, "UNIG = \"unignore\"\n"); |
2012 |
fprintf (file, "W=who\n"); |
fprintf (file, "W = \"who\"\n"); |
2013 |
fprintf (file, "WC=part\n"); |
fprintf (file, "WC = \"part\"\n"); |
2014 |
fprintf (file, "WI=whois\n"); |
fprintf (file, "WI = \"whois\"\n"); |
2015 |
fprintf (file, "WW=whowas\n"); |
fprintf (file, "WW = \"whowas\"\n"); |
2016 |
|
|
2017 |
/* no ignore by default */ |
/* no ignore by default */ |
2018 |
|
|
2019 |
/* default server is freenode */ |
/* default server is freenode */ |
2020 |
fprintf (file, "\n[server]\n"); |
fprintf (file, "\n[server]\n"); |
2021 |
fprintf (file, "server_name=freenode\n"); |
fprintf (file, "server_name = \"freenode\"\n"); |
2022 |
fprintf (file, "server_autoconnect=on\n"); |
fprintf (file, "server_autoconnect = on\n"); |
2023 |
fprintf (file, "server_autoreconnect=on\n"); |
fprintf (file, "server_autoreconnect = on\n"); |
2024 |
fprintf (file, "server_autoreconnect_delay=30\n"); |
fprintf (file, "server_autoreconnect_delay = 30\n"); |
2025 |
fprintf (file, "server_address=irc.freenode.net\n"); |
fprintf (file, "server_address = \"irc.freenode.net\"\n"); |
2026 |
fprintf (file, "server_port=6667\n"); |
fprintf (file, "server_port = 6667\n"); |
2027 |
fprintf (file, "server_ipv6=off\n"); |
fprintf (file, "server_ipv6 = off\n"); |
2028 |
fprintf (file, "server_ssl=off\n"); |
fprintf (file, "server_ssl = off\n"); |
2029 |
fprintf (file, "server_password=\n"); |
fprintf (file, "server_password = \"\"\n"); |
2030 |
|
|
2031 |
/* Get the user's name from /etc/passwd */ |
/* Get the user's name from /etc/passwd */ |
2032 |
if ((my_passwd = getpwuid (geteuid ())) != NULL) |
if ((my_passwd = getpwuid (geteuid ())) != NULL) |
2033 |
{ |
{ |
2034 |
fprintf (file, "server_nick1=%s\n", my_passwd->pw_name); |
fprintf (file, "server_nick1 = \"%s\"\n", my_passwd->pw_name); |
2035 |
fprintf (file, "server_nick2=%s1\n", my_passwd->pw_name); |
fprintf (file, "server_nick2 = \"%s1\"\n", my_passwd->pw_name); |
2036 |
fprintf (file, "server_nick3=%s2\n", my_passwd->pw_name); |
fprintf (file, "server_nick3 = \"%s2\"\n", my_passwd->pw_name); |
2037 |
fprintf (file, "server_username=%s\n", my_passwd->pw_name); |
fprintf (file, "server_username = \"%s\"\n", my_passwd->pw_name); |
2038 |
if ((!my_passwd->pw_gecos) |
if ((!my_passwd->pw_gecos) |
2039 |
|| (my_passwd->pw_gecos[0] == '\0') |
|| (my_passwd->pw_gecos[0] == '\0') |
2040 |
|| (my_passwd->pw_gecos[0] == ',') |
|| (my_passwd->pw_gecos[0] == ',') |
2041 |
|| (my_passwd->pw_gecos[0] == ' ')) |
|| (my_passwd->pw_gecos[0] == ' ')) |
2042 |
fprintf (file, "server_realname=%s\n", my_passwd->pw_name); |
fprintf (file, "server_realname = \"%s\"\n", my_passwd->pw_name); |
2043 |
else |
else |
2044 |
{ |
{ |
2045 |
realname = strdup (my_passwd->pw_gecos); |
realname = strdup (my_passwd->pw_gecos); |
2046 |
pos = strchr (realname, ','); |
pos = strchr (realname, ','); |
2047 |
if (pos) |
if (pos) |
2048 |
pos[0] = '\0'; |
pos[0] = '\0'; |
2049 |
fprintf (file, "server_realname=%s\n", |
fprintf (file, "server_realname = \"%s\"\n", |
2050 |
realname); |
realname); |
2051 |
if (pos) |
if (pos) |
2052 |
pos[0] = ','; |
pos[0] = ','; |
2060 |
WEECHAT_WARNING, |
WEECHAT_WARNING, |
2061 |
_("Unable to get user's name"), |
_("Unable to get user's name"), |
2062 |
strerror (errno)); |
strerror (errno)); |
2063 |
fprintf (file, "server_nick1=weechat1\n"); |
fprintf (file, "server_nick1 = \"weechat1\"\n"); |
2064 |
fprintf (file, "server_nick2=weechat2\n"); |
fprintf (file, "server_nick2 = \"weechat2\"\n"); |
2065 |
fprintf (file, "server_nick3=weechat3\n"); |
fprintf (file, "server_nick3 = \"weechat3\"\n"); |
2066 |
fprintf (file, "server_username=weechat\n"); |
fprintf (file, "server_username = \"weechat\"\n"); |
2067 |
fprintf (file, "server_realname=WeeChat default realname\n"); |
fprintf (file, "server_realname = \"WeeChat default realname\"\n"); |
2068 |
} |
} |
2069 |
|
|
2070 |
fprintf (file, "server_command=\n"); |
fprintf (file, "server_command = \"\"\n"); |
2071 |
fprintf (file, "server_command_delay=0\n"); |
fprintf (file, "server_command_delay = 0\n"); |
2072 |
fprintf (file, "server_autojoin=\n"); |
fprintf (file, "server_autojoin = \"\"\n"); |
2073 |
fprintf (file, "server_autorejoin=on\n"); |
fprintf (file, "server_autorejoin = on\n"); |
2074 |
|
|
2075 |
fclose (file); |
fclose (file); |
2076 |
chmod (filename, 0600); |
chmod (filename, 0600); |
2141 |
switch (weechat_options[i][j].option_type) |
switch (weechat_options[i][j].option_type) |
2142 |
{ |
{ |
2143 |
case OPTION_TYPE_BOOLEAN: |
case OPTION_TYPE_BOOLEAN: |
2144 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = %s\n", |
2145 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
2146 |
(weechat_options[i][j].ptr_int && |
(weechat_options[i][j].ptr_int && |
2147 |
*weechat_options[i][j].ptr_int) ? |
*weechat_options[i][j].ptr_int) ? |
2148 |
"on" : "off"); |
"on" : "off"); |
2149 |
break; |
break; |
2150 |
case OPTION_TYPE_INT: |
case OPTION_TYPE_INT: |
2151 |
fprintf (file, "%s=%d\n", |
fprintf (file, "%s = %d\n", |
2152 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
2153 |
(weechat_options[i][j].ptr_int) ? |
(weechat_options[i][j].ptr_int) ? |
2154 |
*weechat_options[i][j].ptr_int : |
*weechat_options[i][j].ptr_int : |
2155 |
weechat_options[i][j].default_int); |
weechat_options[i][j].default_int); |
2156 |
break; |
break; |
2157 |
case OPTION_TYPE_INT_WITH_STRING: |
case OPTION_TYPE_INT_WITH_STRING: |
2158 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = %s\n", |
2159 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
2160 |
(weechat_options[i][j].ptr_int) ? |
(weechat_options[i][j].ptr_int) ? |
2161 |
weechat_options[i][j].array_values[*weechat_options[i][j].ptr_int] : |
weechat_options[i][j].array_values[*weechat_options[i][j].ptr_int] : |
2162 |
weechat_options[i][j].array_values[weechat_options[i][j].default_int]); |
weechat_options[i][j].array_values[weechat_options[i][j].default_int]); |
2163 |
break; |
break; |
2164 |
case OPTION_TYPE_COLOR: |
case OPTION_TYPE_COLOR: |
2165 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = %s\n", |
2166 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
2167 |
(weechat_options[i][j].ptr_int) ? |
(weechat_options[i][j].ptr_int) ? |
2168 |
gui_get_color_name (*weechat_options[i][j].ptr_int) : |
gui_get_color_name (*weechat_options[i][j].ptr_int) : |
2169 |
weechat_options[i][j].default_string); |
weechat_options[i][j].default_string); |
2170 |
break; |
break; |
2171 |
case OPTION_TYPE_STRING: |
case OPTION_TYPE_STRING: |
2172 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
2173 |
weechat_options[i][j].option_name, |
weechat_options[i][j].option_name, |
2174 |
(weechat_options[i][j].ptr_string) ? |
(weechat_options[i][j].ptr_string) ? |
2175 |
*weechat_options[i][j].ptr_string : |
*weechat_options[i][j].ptr_string : |
2189 |
{ |
{ |
2190 |
function_name = gui_key_function_search_by_ptr (ptr_key->function); |
function_name = gui_key_function_search_by_ptr (ptr_key->function); |
2191 |
if (function_name) |
if (function_name) |
2192 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
2193 |
(expanded_name) ? expanded_name : ptr_key->key, |
(expanded_name) ? expanded_name : ptr_key->key, |
2194 |
function_name); |
function_name); |
2195 |
} |
} |
2196 |
else |
else |
2197 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
2198 |
(expanded_name) ? expanded_name : ptr_key->key, |
(expanded_name) ? expanded_name : ptr_key->key, |
2199 |
ptr_key->command); |
ptr_key->command); |
2200 |
if (expanded_name) |
if (expanded_name) |
2206 |
for (ptr_alias = weechat_alias; ptr_alias; |
for (ptr_alias = weechat_alias; ptr_alias; |
2207 |
ptr_alias = ptr_alias->next_alias) |
ptr_alias = ptr_alias->next_alias) |
2208 |
{ |
{ |
2209 |
fprintf (file, "%s=%s\n", |
fprintf (file, "%s = \"%s\"\n", |
2210 |
ptr_alias->alias_name, ptr_alias->alias_command + 1); |
ptr_alias->alias_name, ptr_alias->alias_command + 1); |
2211 |
} |
} |
2212 |
|
|
2215 |
for (ptr_ignore = irc_ignore; ptr_ignore; |
for (ptr_ignore = irc_ignore; ptr_ignore; |
2216 |
ptr_ignore = ptr_ignore->next_ignore) |
ptr_ignore = ptr_ignore->next_ignore) |
2217 |
{ |
{ |
2218 |
fprintf (file, "ignore=%s,%s,%s,%s\n", |
fprintf (file, "ignore = \"%s,%s,%s,%s\"\n", |
2219 |
ptr_ignore->mask, |
ptr_ignore->mask, |
2220 |
ptr_ignore->type, |
ptr_ignore->type, |
2221 |
ptr_ignore->channel_name, |
ptr_ignore->channel_name, |
2229 |
if (!ptr_server->command_line) |
if (!ptr_server->command_line) |
2230 |
{ |
{ |
2231 |
fprintf (file, "\n[server]\n"); |
fprintf (file, "\n[server]\n"); |
2232 |
fprintf (file, "server_name=%s\n", ptr_server->name); |
fprintf (file, "server_name = \"%s\"\n", ptr_server->name); |
2233 |
fprintf (file, "server_autoconnect=%s\n", |
fprintf (file, "server_autoconnect = %s\n", |
2234 |
(ptr_server->autoconnect) ? "on" : "off"); |
(ptr_server->autoconnect) ? "on" : "off"); |
2235 |
fprintf (file, "server_autoreconnect=%s\n", |
fprintf (file, "server_autoreconnect = %s\n", |
2236 |
(ptr_server->autoreconnect) ? "on" : "off"); |
(ptr_server->autoreconnect) ? "on" : "off"); |
2237 |
fprintf (file, "server_autoreconnect_delay=%d\n", |
fprintf (file, "server_autoreconnect_delay = %d\n", |
2238 |
ptr_server->autoreconnect_delay); |
ptr_server->autoreconnect_delay); |
2239 |
fprintf (file, "server_address=%s\n", ptr_server->address); |
fprintf (file, "server_address = \"%s\"\n", ptr_server->address); |
2240 |
fprintf (file, "server_port=%d\n", ptr_server->port); |
fprintf (file, "server_port = %d\n", ptr_server->port); |
2241 |
fprintf (file, "server_ipv6=%s\n", |
fprintf (file, "server_ipv6 = %s\n", |
2242 |
(ptr_server->ipv6) ? "on" : "off"); |
(ptr_server->ipv6) ? "on" : "off"); |
2243 |
fprintf (file, "server_ssl=%s\n", |
fprintf (file, "server_ssl = %s\n", |
2244 |
(ptr_server->ssl) ? "on" : "off"); |
(ptr_server->ssl) ? "on" : "off"); |
2245 |
fprintf (file, "server_password=%s\n", |
fprintf (file, "server_password = \"%s\"\n", |
2246 |
(ptr_server->password) ? ptr_server->password : ""); |
(ptr_server->password) ? ptr_server->password : ""); |
2247 |
fprintf (file, "server_nick1=%s\n", ptr_server->nick1); |
fprintf (file, "server_nick1 = \"%s\"\n", ptr_server->nick1); |
2248 |
fprintf (file, "server_nick2=%s\n", ptr_server->nick2); |
fprintf (file, "server_nick2 = \"%s\"\n", ptr_server->nick2); |
2249 |
fprintf (file, "server_nick3=%s\n", ptr_server->nick3); |
fprintf (file, "server_nick3 = \"%s\"\n", ptr_server->nick3); |
2250 |
fprintf (file, "server_username=%s\n", ptr_server->username); |
fprintf (file, "server_username = \"%s\"\n", ptr_server->username); |
2251 |
fprintf (file, "server_realname=%s\n", ptr_server->realname); |
fprintf (file, "server_realname = \"%s\"\n", ptr_server->realname); |
2252 |
fprintf (file, "server_command=%s\n", |
fprintf (file, "server_command = \"%s\"\n", |
2253 |
(ptr_server->command) ? ptr_server->command : ""); |
(ptr_server->command) ? ptr_server->command : ""); |
2254 |
fprintf (file, "server_command_delay=%d\n", ptr_server->command_delay); |
fprintf (file, "server_command_delay = %d\n", ptr_server->command_delay); |
2255 |
fprintf (file, "server_autojoin=%s\n", |
fprintf (file, "server_autojoin = \"%s\"\n", |
2256 |
(ptr_server->autojoin) ? ptr_server->autojoin : ""); |
(ptr_server->autojoin) ? ptr_server->autojoin : ""); |
2257 |
fprintf (file, "server_autorejoin=%s\n", |
fprintf (file, "server_autorejoin = %s\n", |
2258 |
(ptr_server->autorejoin) ? "on" : "off"); |
(ptr_server->autorejoin) ? "on" : "off"); |
2259 |
fprintf (file, "server_notify_levels=%s\n", |
fprintf (file, "server_notify_levels = \"%s\"\n", |
2260 |
(ptr_server->notify_levels) ? ptr_server->notify_levels : ""); |
(ptr_server->notify_levels) ? ptr_server->notify_levels : ""); |
2261 |
} |
} |
2262 |
} |
} |