mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 03:06:21 +00:00
Added /plugins load command
This commit is contained in:
@@ -604,6 +604,13 @@ prefs_get_plugins(void)
|
||||
return g_key_file_get_string_list(prefs, "plugins", "load", NULL, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
prefs_add_plugin(const char *const name)
|
||||
{
|
||||
conf_string_list_add(prefs, "plugins", "load", name);
|
||||
_save_prefs();
|
||||
}
|
||||
|
||||
void
|
||||
prefs_free_plugins(gchar **plugins)
|
||||
{
|
||||
|
||||
@@ -187,6 +187,7 @@ void prefs_set_autoxa_time(gint value);
|
||||
|
||||
gchar** prefs_get_plugins(void);
|
||||
void prefs_free_plugins(gchar **plugins);
|
||||
void prefs_add_plugin(const char *const name);
|
||||
|
||||
char prefs_get_otr_char(void);
|
||||
void prefs_set_otr_char(char ch);
|
||||
|
||||
Reference in New Issue
Block a user