diff options
Diffstat (limited to 'doc/it/weechat_plugin_api.it.asciidoc')
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index d8fae2550..35a82b4c4 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -63,6 +63,10 @@ WEECHAT_PLUGIN_VERSION("1.0"):: WEECHAT_PLUGIN_LICENSE("GPL3"):: licenza del plugin +// TRANSLATION MISSING +WEECHAT_PLUGIN_PRIORITY(1000):: + the plugin priority (optional, see below) + [[main_functions]] === Funzioni principali @@ -98,6 +102,22 @@ Valori restituiti: * 'WEECHAT_RC_ERROR' se c'è un errore (il plugin NON verrà caricato) +// TRANSLATION MISSING +[[plugin_priority]] +===== Plugin priority + +// TRANSLATION MISSING +When plugins are auto-loaded (for example on startup), WeeChat first loads all +plugins, and then calls the 'init' functions, using the priority defined in +each plugin. A high priority means that the 'init' function is called first. + +Default priority is 1000 (with such priority, the plugin is loaded after all +default plugins). + +The default WeeChat plugins are initialized in this order: + +include::autogen/plugin_api/plugins_priority.asciidoc[] + ==== weechat_plugin_end Questa funzione viene chiamata quando il plugin viene |