summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-02 07:44:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-02 07:44:57 +0100
commitbc464679a733986632c2ce7117daea8a91a67aed (patch)
tree511c36d638f666a6108dff2722acf8804b33a643 /src/plugins
parent86685f4af4145e3c5551e6a6760cd0ee7d6a18d2 (diff)
downloadweechat-bc464679a733986632c2ce7117daea8a91a67aed.zip
relay: fix build when CJSON is disabled (issue #2066)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/relay-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-client.c b/src/plugins/relay/relay-client.c
index b5260700d..29e2cb6ff 100644
--- a/src/plugins/relay/relay-client.c
+++ b/src/plugins/relay/relay-client.c
@@ -431,7 +431,9 @@ relay_client_recv_text_multi_line (struct t_relay_client *client)
/* irc is single line only */
break;
case RELAY_PROTOCOL_API:
+#ifdef HAVE_CJSON
relay_api_recv_json (client, client->partial_message);
+#endif /* HAVE_CJSON */
break;
case RELAY_NUM_PROTOCOLS:
break;