summaryrefslogtreecommitdiff
path: root/doc/ja/weechat_plugin_api.ja.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-06-27 17:00:53 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-06-27 17:00:53 +0200
commit0ff8d7b5439ee543fae8eb4c4080ec4ccf905b1d (patch)
tree479fea1510aa2cbedf41ef2bb115e552d08f5995 /doc/ja/weechat_plugin_api.ja.asciidoc
parentfdd9c03e5a5670d6ecfa4d389df4e76d22fd3aad (diff)
downloadweechat-0ff8d7b5439ee543fae8eb4c4080ec4ccf905b1d.zip
irc: decode/encode only text in IRC messages and not the headers (bug #29886, closes #218, closes #451)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc25
1 files changed, 18 insertions, 7 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index 4a943113d..091018eba 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -12901,23 +12901,34 @@ hashtable_in = weechat_hashtable_new (8,
NULL);
if (hashtable_in)
{
- weechat_hashtable_set (hashtable_in, "message",
- ":nick!user@host PRIVMSG #weechat :message here");
+ weechat_hashtable_set (
+ hashtable_in,
+ "message",
+ "@time=2015-06-27T16:40:35.000Z :nick!user@host PRIVMSG #weechat :hello!");
hashtable_out = weechat_info_get_hashtable ("irc_message_parse",
hashtable_in);
/*
* now hashtable_out has following keys/values:
- * "nick" : "nick"
- * "host" : "nick!user@host"
- * "command" : "PRIVMSG"
- * "channel" : "#weechat"
- * "arguments": "#weechat :message here"
+ * "tags" : "time=2015-06-27T16:40:35.000Z"
+ * "message_without_tags": ":nick!user@host PRIVMSG #weechat :hello!"
+ * "nick" : "nick"
+ * "host" : "nick!user@host"
+ * "command" : "PRIVMSG"
+ * "channel" : "#weechat"
+ * "arguments" : "#weechat :hello!"
+ * "text" : "hello!"
+ * "pos_text" : "65"
*/
weechat_hashtable_free (hashtable_in);
weechat_hashtable_free (hashtable_out);
}
----
+// TRANSLATION MISSING
+[NOTE]
+See the 'WeeChat Scripting Guide' for more info about "irc_message_parse"
+output.
+
スクリプト (Python) での使用例:
[source,python]