summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-05-23 06:58:18 +0100
committerPatrick <tingping@tingping.se>2021-06-17 19:47:34 -0500
commit747a52aae8806a9072a23ea68212767f352ac431 (patch)
tree0bd569ceedc1f861d6626fd4eecd1316bd7e84dc /src/common
parent1f5c95d9e92360bb72ad415aca6698af8774b094 (diff)
Default new servers to use TLS if built with OpenSSL.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/outbound.c2
-rw-r--r--src/common/servlist.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 614aad38..e8d35c96 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -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,
diff --git a/src/common/servlist.c b/src/common/servlist.c
index 79a5694b..45bc4999 100644
--- a/src/common/servlist.c
+++ b/src/common/servlist.c
@@ -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);