summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorPeter Boström <pbos@kth.se>2012-07-09 15:16:51 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-09 15:16:51 +0200
commitc03fcd5e120de5a29d18d1cc31af8a8d58c95e95 (patch)
treea25fab15c6f5db1f40e067d67b2e8e769cea14b0 /doc/it
parent92aa9bff4588068974857d175490c39f77cfec6f (diff)
downloadweechat-c03fcd5e120de5a29d18d1cc31af8a8d58c95e95.zip
core: add function "hook_set" in plugin API, add "subplugin" in hooks (set by script plugins), display subplugin in /help on commands (task #12049)
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt
index 79f601955..1f8ab88fb 100644
--- a/doc/it/weechat_plugin_api.it.txt
+++ b/doc/it/weechat_plugin_api.it.txt
@@ -9142,6 +9142,51 @@ def my_focus_nicklist_cb(data, info):
hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "")
----------------------------------------
+weechat_hook_set
+^^^^^^^^^^^^^^^^
+
+_Novità nella versione 0.3.9._
+
+// TRANSLATION MISSING
+Set string value of a hook property.
+
+Prototipo:
+
+[source,C]
+----------------------------------------
+void weechat_hook_set (struct t_hook *hook, const char *property,
+ const char *value);
+----------------------------------------
+
+Argomenti:
+
+* 'hook': qualcosa su cui è presente un hook con "weechat_hook_xxx()"
+* 'property' e 'value': nome della proprietà, con il proprio valore:
+
+[width="100%",cols="^2,4,8",options="header"]
+|========================================
+| Nome | Valore | Descrizione
+
+| subplugin | qualsiasi stringa |
+// TRANSLATION MISSING
+ name of sub plugin (commonly script name, which is displayed in
+ `/help command` for a hook of type 'command')
+|========================================
+
+Esempio in C:
+
+[source,C]
+----------------------------------------
+struct t_hook *my_command_hook =
+ weechat_hook_command ("abcd", "description",
+ "args", "description args",
+ "", &my_command_cb, NULL);
+weechat_hook_set (my_command_hook, "subplugin", "test");
+----------------------------------------
+
+[NOTE]
+Questa funzione non è disponibile nelle API per lo scripting.
+
weechat_unhook
^^^^^^^^^^^^^^