mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 21:16:22 +00:00
Add /plugin reload command
This commit is contained in:
@@ -187,6 +187,17 @@ plugins_unload(const char *const name)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
plugins_reload(const char *const name)
|
||||
{
|
||||
gboolean res = plugins_unload(name);
|
||||
if (res) {
|
||||
res = plugins_load(name);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static gchar*
|
||||
_get_plugins_dir(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user