core: add signals for plugins loaded/unloaded

v2.8-utf8proc
Sebastien Helleu 2012-09-04 12:39:56 +02:00
parent 36356521a1
commit 3849cb49bc
5 changed files with 38 additions and 1 deletions

View File

@ -1,12 +1,13 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.9-rc1, 2012-09-03
v0.3.9-rc1, 2012-09-04
Version 0.3.9 (under dev!)
--------------------------
* core: add signals for plugins loaded/unloaded
* core: add default key alt+"x" (zoom on merged buffer) (task #11029)
* core: fix display bug when end of a line is displayed on top of chat (last
line truncated and MORE(0) in status bar) (bug #37203)

View File

@ -7739,6 +7739,16 @@ Arguments:
- |
partial completion happened
| weechat | plugin_loaded +
(_new in version 0.3.9_) |
string: path to plugin loaded (example: "/usr/lib/weechat/plugins/irc.so") |
plugin loaded
| weechat | plugin_unloaded +
(_new in version 0.3.9_) |
string: name of plugin unloaded (example: "irc") |
plugin unloaded
| weechat | quit |
string: arguments for /quit |
command `/quit` issued by user

View File

@ -7849,6 +7849,16 @@ Paramètres :
- |
une complétion partielle a été faite
| weechat | plugin_loaded +
(_nouveau dans la version 0.3.9_) |
chaîne : chemin vers l'extension chargée (exemple: "/usr/lib/weechat/plugins/irc.so") |
extension chargée
| weechat | plugin_unloaded +
(_nouveau dans la version 0.3.9_) |
chaîne : nom de l'extension déchargée (exemple: "irc") |
extension déchargée
| weechat | quit |
chaîne : paramètres pour le /quit |
la commande `/quit` a été exécutée par l'utilisateur

View File

@ -7803,6 +7803,18 @@ Argomenti:
- |
completamento parziale avvenuto
// TRANSLATION MISSING
| weechat | plugin_loaded +
(_new in version 0.3.9_) |
string: path to plugin loaded (example: "/usr/lib/weechat/plugins/irc.so") |
plugin loaded
// TRANSLATION MISSING
| weechat | plugin_unloaded +
(_new in version 0.3.9_) |
string: name of plugin unloaded (example: "irc") |
plugin unloaded
| weechat | quit |
string: argomenti per /quit |
comando `/quit` digitato dall'utente

View File

@ -848,6 +848,9 @@ plugin_load (const char *filename, int argc, char **argv)
name);
}
hook_signal_send ("plugin_loaded", WEECHAT_HOOK_SIGNAL_STRING,
(char *)filename);
return new_plugin;
}
@ -1030,6 +1033,7 @@ plugin_unload (struct t_weechat_plugin *plugin)
_("Plugin \"%s\" unloaded"),
(name) ? name : "???");
}
hook_signal_send ("plugin_unloaded", WEECHAT_HOOK_SIGNAL_STRING, name);
if (name)
free (name);
}