summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-04-16 10:27:37 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-04-16 10:27:37 +0200
commit4cc557f421eb7b107096b936644f520f283ffb7e (patch)
tree6e7944f511f5c3910ada54f59f69b3128c92b774
parent8560b09dad11202f7c1edfd40519ecf70cc2cc33 (diff)
downloadweechat-4cc557f421eb7b107096b936644f520f283ffb7e.zip
relay: fix "id" sent in response to handshake command (weechat protocol)
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.c6
1 files 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;
}