summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-12-04 18:09:50 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-12-04 18:09:50 +0100
commit9c4ae98d2e8430e95702b664c0612a64ae64f984 (patch)
treefff8de262e450edea458946102f28f3ed85cecec
parent7e5acaf50f25dd097e8225b0df6c4731c8730a63 (diff)
downloadweechat-9c4ae98d2e8430e95702b664c0612a64ae64f984.zip
Add missing #ifdef HAVE_GNUTLS
-rw-r--r--src/plugins/irc/irc-server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index a76abf4a5..669c4053d 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -2045,6 +2045,7 @@ irc_server_connect_cb (void *arg_server, int status, int gnutls_rc,
weechat_prefix ("error"), IRC_PLUGIN_NAME,
error);
}
+#ifdef HAVE_GNUTLS
if (gnutls_rc == GNUTLS_E_DH_PRIME_UNACCEPTABLE)
{
weechat_printf (server->buffer,
@@ -2056,6 +2057,9 @@ irc_server_connect_cb (void *arg_server, int status, int gnutls_rc,
IRC_SERVER_OPTION_INTEGER (server,
IRC_SERVER_OPTION_SSL_DHKEY_SIZE));
}
+#else
+ (void) gnutls_rc;
+#endif
irc_server_close_connection (server);
irc_server_switch_address (server);
break;