mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 17:22:18 -05:00
fix fishlim config handler
This commit is contained in:
parent
1a96ca3edd
commit
b15fe1ddf1
@ -29,20 +29,12 @@
|
|||||||
#include "fish.h"
|
#include "fish.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "keystore.h"
|
#include "keystore.h"
|
||||||
|
#include "xchat_plugin.h"
|
||||||
|
|
||||||
|
|
||||||
static char *keystore_password = NULL;
|
static char *keystore_password = NULL;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the path to the key store file.
|
|
||||||
*/
|
|
||||||
static gchar *get_config_filename() {
|
|
||||||
// TODO use xchat_get_info(ph, "xchatdirfs")
|
|
||||||
const gchar *homedir = g_get_home_dir();
|
|
||||||
return g_build_filename(homedir, ".xchat2", "blow.ini", NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the key store file: ~/.xchat2/blow.ini
|
* Opens the key store file: ~/.xchat2/blow.ini
|
||||||
*/
|
*/
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -47,6 +48,13 @@ static const char usage_delkey[] = "Usage: DELKEY <nick or #channel>, deletes th
|
|||||||
static xchat_plugin *ph;
|
static xchat_plugin *ph;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the path to the key store file.
|
||||||
|
*/
|
||||||
|
gchar *get_config_filename() {
|
||||||
|
return g_build_filename(xchat_get_info(ph, "xchatdirfs"), "blow.ini", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Appends data to a string. Returns true if there was sufficient memory.
|
* Appends data to a string. Returns true if there was sufficient memory.
|
||||||
* Frees *s and returns false if an error occurs.
|
* Frees *s and returns false if an error occurs.
|
||||||
|
1
plugins/fishlim/xchat_plugin.h
Normal file
1
plugins/fishlim/xchat_plugin.h
Normal file
@ -0,0 +1 @@
|
|||||||
|
gchar *get_config_filename();
|
Loading…
Reference in New Issue
Block a user