summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-09-04 12:39:56 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-09-04 12:39:56 +0200
commit3849cb49bc41d7a1d7573268dcca146a45c29e26 (patch)
tree0b8ea5589d45a702b22c0f95f0ca6da1dadfdde8 /src
parent36356521a1b0379cb0ff31bffa08b706f98635fe (diff)
downloadweechat-3849cb49bc41d7a1d7573268dcca146a45c29e26.zip
core: add signals for plugins loaded/unloaded
Diffstat (limited to 'src')
-rw-r--r--src/plugins/plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 64ce41b6d..323e5068b 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -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);
}