summaryrefslogtreecommitdiff
path: root/doc/sr
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-06-05 19:01:46 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-06-05 19:01:46 +0200
commit7a754d93abf68d536a4f18c8771a374a75fc5b57 (patch)
tree281e00771e2bb1937d4d0dc404f3fc343c341b34 /doc/sr
parent3a4f51b35274a603c12ad21d82353cf77bae48fe (diff)
downloadweechat-7a754d93abf68d536a4f18c8771a374a75fc5b57.zip
doc/relay: add option "escape_commands" in handshake response and examples
Diffstat (limited to 'doc/sr')
-rw-r--r--doc/sr/weechat_relay_protocol.sr.adoc29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/sr/weechat_relay_protocol.sr.adoc b/doc/sr/weechat_relay_protocol.sr.adoc
index b76d26949..e8f855c57 100644
--- a/doc/sr/weechat_relay_protocol.sr.adoc
+++ b/doc/sr/weechat_relay_protocol.sr.adoc
@@ -158,6 +158,10 @@ _WeeChat ≥ 2.9, updated in versions 3.5, 4.0.0._
** _off_: поруке се не компресују
** _zlib_: поруке су компресоване са https://zlib.net/[zlib ^↗^^]
** _zstd_: поруке су компресоване са https://facebook.github.io/zstd/[Zstandard ^↗^^]
+// TRANSLATION MISSING
+* _escape_commands_:
+** _on_: all backslashes are interpreted in the client messages
+** _off_: backslashes are *NOT* interpreted in the client messages and used as-is
[TIP]
У програму WeeChat верзије ≤ 2.8, команда _handshake_ није имплементирана, програм WeeChat једноставно игнорише ову команду, чак и ако се пошаље пре _init_ команде. +
@@ -182,6 +186,28 @@ htb: {
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'off',
+ 'escape_commands': 'off',
+}
+----
+
+* Escape of commands enabled by the client _(WeeChat ≥ 4.0.0)_:
+
+----
+(handshake) handshake escape_commands=on
+----
+
+Response:
+
+[source,python]
+----
+id: 'handshake'
+htb: {
+ 'password_hash_algo': 'plain',
+ 'password_hash_iterations': '100000',
+ 'totp': 'on',
+ 'nonce': '85B1EE00695A5B254E14F4885538DF0D',
+ 'compression': 'off',
+ 'escape_commands': 'on',
}
----
@@ -202,6 +228,7 @@ htb: {
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'off',
+ 'escape_commands': 'off',
}
----
@@ -222,6 +249,7 @@ htb: {
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'off',
+ 'escape_commands': 'off',
}
----
@@ -248,6 +276,7 @@ htb: {
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'zstd',
+ 'escape_commands': 'off',
}
----