1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

core: add signals for plugins loaded/unloaded

This commit is contained in:
Sebastien Helleu
2012-09-04 12:39:56 +02:00
parent 36356521a1
commit 3849cb49bc
5 changed files with 38 additions and 1 deletions
+4
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);
}