diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-01 09:59:38 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-01 09:59:38 +0100 |
commit | 07c80639930531423bb528a3b24dc1daaa3af5af (patch) | |
tree | 9872551a99b1ca063a2c19aa90257c57f35e11c9 /doc/en | |
parent | ac94f68b598837a57f4cb28ecdf3d4003343bc45 (diff) | |
download | weechat-07c80639930531423bb528a3b24dc1daaa3af5af.zip |
doc: add description of command "test" in relay protocol
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_relay_protocol.en.txt | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/doc/en/weechat_relay_protocol.en.txt b/doc/en/weechat_relay_protocol.en.txt index 57eaad0c5..e24f72834 100644 --- a/doc/en/weechat_relay_protocol.en.txt +++ b/doc/en/weechat_relay_protocol.en.txt @@ -354,6 +354,46 @@ desync irc.freenode.#weechat nicklist desync irc.freenode.#weechat ---------------------------------------- +[[command_test]] +test +~~~~ + +Test command: WeeChat will reply with various different objects. + +This command is useful to test the decoding of objects rerutned by WeeChat. + +Syntax: + +---------------------------------------- +test +---------------------------------------- + +Example: + +---------------------------------------- +test +---------------------------------------- + +Returned objects (in this order): + +[width="60%",cols="^3,3m,7m",options="header"] +|===================================================== +| Type | Type (in message) | Value +| char | chr | 65 ("A") +| integer | int | 123456 +| long | lon | 1234567890 +| string | str | "a string" +| string | str | "" +| string | str | NULL +| buffer | buf | "buffer" +| buffer | buf | NULL +| pointer | ptr | 0x1234abcd +| pointer | ptr | NULL +| time | tim | 1321993456 +| array of strings | arr str | { "abc", "de" } +| array of integers | arr int | { 123, 456, 789 } +|===================================================== + [[command_quit]] quit ~~~~ @@ -626,7 +666,7 @@ Example: length '1' 'a' '2' 'b' '3' 'c' '4' 'd' '5' ....................................... -A 'NULL' pointer has value 0: +A 'NULL' pointer has a length of zero: ....................................... ┌────╥────┐ |