diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-15 07:40:38 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-15 07:40:38 +0100 |
commit | cf5501f69c4312fdfa9f73fd25a59c443f4413ea (patch) | |
tree | 243753563fe907d01a7182bb6f268f4bf5623b57 /doc/it/weechat_plugin_api.it.asciidoc | |
parent | 66e0455951c245a8ac2d7b4bf0384e1d12405608 (diff) | |
download | weechat-cf5501f69c4312fdfa9f73fd25a59c443f4413ea.zip |
core: add priority in plugins to initialize them in order
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
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 |