1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

relay: add "compression" in response to handshake command (weechat protocol)

The value can be "zlib" (default in relay) or "off".
This commit is contained in:
Sébastien Helleu
2020-05-02 12:45:47 +02:00
parent 46a2979aa1
commit 7699c0b757
5 changed files with 15 additions and 0 deletions
@@ -199,6 +199,10 @@ relay_weechat_protocol_handshake_reply (struct t_relay_client *client,
hashtable,
"totp",
(totp_secret && totp_secret[0]) ? "on" : "off");
weechat_hashtable_set (
hashtable,
"compression",
relay_weechat_compression_string[RELAY_WEECHAT_DATA(client, compression)]);
msg = relay_weechat_msg_new (id);
if (msg)
@@ -60,6 +60,8 @@ struct t_relay_weechat_data
struct t_hook *hook_timer_nicklist; /* timer for sending nicklist */
};
extern char *relay_weechat_compression_string[];
extern int relay_weechat_compression_search (const char *compression);
extern void relay_weechat_hook_signals (struct t_relay_client *client);
extern void relay_weechat_unhook_signals (struct t_relay_client *client);