From 4cc557f421eb7b107096b936644f520f283ffb7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 16 Apr 2020 10:27:37 +0200 Subject: [PATCH] relay: fix "id" sent in response to handshake command (weechat protocol) --- src/plugins/relay/weechat/relay-weechat-protocol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index fe9494cc2..533c3e4ab 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -165,7 +165,7 @@ relay_weechat_protocol_is_sync (struct t_relay_client *ptr_client, void relay_weechat_protocol_handshake_reply (struct t_relay_client *client, - const char *command) + const char *id) { struct t_relay_weechat_msg *msg; struct t_hashtable *hashtable; @@ -200,7 +200,7 @@ relay_weechat_protocol_handshake_reply (struct t_relay_client *client, "totp", (totp_secret && totp_secret[0]) ? "on" : "off"); - msg = relay_weechat_msg_new (command); + msg = relay_weechat_msg_new (id); if (msg) { relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_HASHTABLE); @@ -302,7 +302,7 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(handshake) client->auth_password = auth_found; - relay_weechat_protocol_handshake_reply (client, command); + relay_weechat_protocol_handshake_reply (client, id); return WEECHAT_RC_OK; }