summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-server.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 5f0c3adb1..66663f910 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -3289,11 +3289,16 @@ irc_server_connect_cb (void *data, int status, int gnutls_rc, int sock,
weechat_printf (server->buffer,
_("%s%s: you should play with option "
"irc.server.%s.ssl_dhkey_size (current "
- "value is %d)"),
+ "value is %d, try a lower value like %d or "
+ "%d)"),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
server->name,
IRC_SERVER_OPTION_INTEGER (server,
- IRC_SERVER_OPTION_SSL_DHKEY_SIZE));
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE),
+ IRC_SERVER_OPTION_INTEGER (server,
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE) / 2,
+ IRC_SERVER_OPTION_INTEGER (server,
+ IRC_SERVER_OPTION_SSL_DHKEY_SIZE) / 4);
}
#else
(void) gnutls_rc;