summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-06-22 20:38:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-06-24 21:02:03 +0200
commitb1cf12700d6c928e0550d97a9c1da7b188f81dc1 (patch)
treea923ed6fd2b5634693f97a449446f35745d84d3c /doc/ja
parent8ea1ee06e5ac18a000788851f807cb4fad3e076c (diff)
downloadweechat-b1cf12700d6c928e0550d97a9c1da7b188f81dc1.zip
irc: add keys/values with tags in output of irc_message_parse_to_hashtable (issue #1654)
Key is "tag_xxx" (where "xxx" is the name of tag) and value is the unescaped tag value.
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc14
-rw-r--r--doc/ja/weechat_scripting.ja.adoc19
2 files changed, 21 insertions, 12 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 21bd45ec8..a833c0233 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -15616,12 +15616,14 @@ if (hashtable_in)
weechat_hashtable_set (
hashtable_in,
"message",
- "@time=2015-06-27T16:40:35.000Z :nick!user@host PRIVMSG #weechat :hello!");
+ "@time=2015-06-27T16:40:35.000Z;tag2=value\\sspace :nick!user@host PRIVMSG #weechat :hello!");
hashtable_out = weechat_info_get_hashtable ("irc_message_parse",
hashtable_in);
/*
* now hashtable_out has following keys/values:
- * "tags" : "time=2015-06-27T16:40:35.000Z"
+ * "tags" : "time=2015-06-27T16:40:35.000Z;tag2=value\\sspace"
+ * "tag_time" : "2015-06-27T16:40:35.000Z"
+ * "tag_tag2" : "value space"
* "message_without_tags": ":nick!user@host PRIVMSG #weechat :hello!"
* "nick" : "nick"
* "user" : "user"
@@ -15630,10 +15632,10 @@ if (hashtable_in)
* "channel" : "#weechat"
* "arguments" : "#weechat :hello!"
* "text" : "hello!"
- * "pos_command" : "47"
- * "pos_arguments" : "55"
- * "pos_channel" : "55"
- * "pos_text" : "65"
+ * "pos_command" : "65"
+ * "pos_arguments" : "73"
+ * "pos_channel" : "73"
+ * "pos_text" : "83"
*/
weechat_hashtable_free (hashtable_in);
weechat_hashtable_free (hashtable_out);
diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc
index f078bbfe9..ef4a28172 100644
--- a/doc/ja/weechat_scripting.ja.adoc
+++ b/doc/ja/weechat_scripting.ja.adoc
@@ -1315,6 +1315,11 @@ _WeeChat バージョン 0.3.4 以上で利用可。_
メッセージに付けられたタグ (空にすることも可) |
`+time=2015-06-27T16:40:35.000Z+`
+// TRANSLATION MISSING
+| tag_xxx | 3.3 |
+ Unescaped value of tag "xxx" (one key per tag). |
+ `+2015-06-27T16:40:35.000Z+`
+
| message_without_tags | 0.4.0 |
タグを除いたメッセージ (タグが付けられていなければメッセージと同じ) |
`+:nick!user@host PRIVMSG #weechat :hello!+`
@@ -1373,10 +1378,12 @@ _WeeChat バージョン 0.3.4 以上で利用可。_
----
dict = weechat.info_get_hashtable(
"irc_message_parse",
- {"message": "@time=2015-06-27T16:40:35.000Z :nick!user@host PRIVMSG #weechat :hello!"})
+ {"message": "@time=2015-06-27T16:40:35.000Z;tag2=value\\sspace :nick!user@host PRIVMSG #weechat :hello!"})
# dict == {
-# "tags": "time=2015-06-27T16:40:35.000Z",
+# "tags": "time=2015-06-27T16:40:35.000Z;tag2=value\\sspace",
+# "tag_time": "2015-06-27T16:40:35.000Z",
+# "tag_tag2": "value space",
# "message_without_tags": ":nick!user@host PRIVMSG #weechat :hello!",
# "nick": "nick",
# "user": "user",
@@ -1385,10 +1392,10 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
-# "pos_command": "47",
-# "pos_arguments": "55",
-# "pos_channel": "55",
-# "pos_text": "65",
+# "pos_command": "65",
+# "pos_arguments": "73",
+# "pos_channel": "73",
+# "pos_text": "83",
# }
----