summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-05-08 14:36:23 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-05-08 14:36:23 +0200
commit432ecaa9f47e808a8340a178acc26fdf12f04f4f (patch)
tree2e6715cb2e72f2a37230ada5c6d208a01e3631e1 /doc/en
parent36d519acb05815e2fee222359c136484cfd3185c (diff)
downloadweechat-432ecaa9f47e808a8340a178acc26fdf12f04f4f.zip
relay: add message "_buffer_cleared"
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_relay_protocol.en.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/en/weechat_relay_protocol.en.txt b/doc/en/weechat_relay_protocol.en.txt
index 62e66e22d..3a6876f06 100644
--- a/doc/en/weechat_relay_protocol.en.txt
+++ b/doc/en/weechat_relay_protocol.en.txt
@@ -539,6 +539,9 @@ WeeChat reserved identifiers:
| _buffer_title_changed | buffers / buffer | hdata: buffer |
Title of buffer changed | Change title of buffer
+| _buffer_cleared | buffer | hdata: buffer |
+ Buffer cleared | Clear buffer
+
| _buffer_type_changed | buffer | hdata: buffer |
Type of buffer changed | Change type of buffer
@@ -850,6 +853,37 @@ hda:
title: 'Welcome on #weechat! http://weechat.org/'
----
+[[message_buffer_cleared]]
+==== _buffer_cleared
+
+_WeeChat ≥ 1.0._
+
+This message is sent to the client when the signal "buffer_cleared" is sent by
+WeeChat.
+
+Data sent as hdata:
+
+[width="100%",cols="3m,2,10",options="header"]
+|===
+| Name | Type | Description
+| number | integer | Buffer number (≥ 1)
+| full_name | string | Full name (example: 'irc.freenode.#weechat')
+|===
+
+Example: buffer 'irc.freenode.#weechat' has been cleared:
+
+[source,python]
+----
+id: '_buffer_cleared'
+hda:
+ keys: {'number': 'int', 'full_name': 'str'}
+ path: ['buffer']
+ item 1:
+ __path: ['0x4a715d0']
+ number: 3
+ full_name: 'irc.freenode.#weechat'
+----
+
[[message_buffer_type_changed]]
==== _buffer_type_changed