mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Default new servers to use TLS if built with OpenSSL.
This commit is contained in:
@@ -3930,7 +3930,7 @@ cmd_voice (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
const struct commands xc_cmds[] = {
|
||||
{"ADDBUTTON", cmd_addbutton, 0, 0, 1,
|
||||
N_("ADDBUTTON <name> <action>, adds a button under the user-list")},
|
||||
{"ADDSERVER", cmd_addserver, 0, 0, 1, N_("ADDSERVER <NewNetwork> <newserver/6667>, adds a new network with a new server to the network list")},
|
||||
{"ADDSERVER", cmd_addserver, 0, 0, 1, N_("ADDSERVER <NewNetwork> <hostname/port>, adds a new network with a new server to the network list")},
|
||||
{"ALLCHAN", cmd_allchannels, 0, 0, 1,
|
||||
N_("ALLCHAN <cmd>, sends a command to all channels you're in")},
|
||||
{"ALLCHANL", cmd_allchannelslocal, 0, 0, 1,
|
||||
|
||||
@@ -947,6 +947,9 @@ servlist_net_add (char *name, char *comment, int prepend)
|
||||
net = g_new0 (ircnet, 1);
|
||||
net->name = g_strdup (name);
|
||||
net->flags = FLAG_CYCLE | FLAG_USE_GLOBAL | FLAG_USE_PROXY;
|
||||
#ifdef USE_OPENSSL
|
||||
net->flags |= FLAG_USE_SSL;
|
||||
#endif
|
||||
|
||||
if (prepend)
|
||||
network_list = g_slist_prepend (network_list, net);
|
||||
|
||||
Reference in New Issue
Block a user