mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-26 03:02:17 -05:00
Prepare FiSHLiM to use the plugin config API
This commit is contained in:
parent
a4052aff32
commit
8aaff85e70
@ -36,7 +36,7 @@ static char *keystore_password = NULL;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the key store file: ~/.xchat2/blow.ini
|
* Opens the key store file: ~/.config/hexchat/plugin_fishlim.conf
|
||||||
*/
|
*/
|
||||||
static GKeyFile *getConfigFile() {
|
static GKeyFile *getConfigFile() {
|
||||||
gchar *filename = get_config_filename();
|
gchar *filename = get_config_filename();
|
||||||
@ -63,7 +63,7 @@ static const char *get_keystore_password() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a value for a nick/channel from blow.ini. Unlike
|
* Gets a value for a nick/channel from plugin_fishlim.conf. Unlike
|
||||||
* g_key_file_get_string, this function is case insensitive.
|
* g_key_file_get_string, this function is case insensitive.
|
||||||
*/
|
*/
|
||||||
static gchar *get_nick_value(GKeyFile *keyfile, const char *nick, const char *item) {
|
static gchar *get_nick_value(GKeyFile *keyfile, const char *nick, const char *item) {
|
||||||
|
@ -52,7 +52,7 @@ static xchat_plugin *ph;
|
|||||||
* Returns the path to the key store file.
|
* Returns the path to the key store file.
|
||||||
*/
|
*/
|
||||||
gchar *get_config_filename() {
|
gchar *get_config_filename() {
|
||||||
return g_build_filename(xchat_get_info(ph, "xchatdirfs"), "blow.ini", NULL);
|
return g_build_filename(xchat_get_info(ph, "xchatdirfs"), "plugin_fishlim.conf", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user