summary refs log tree commit diff stats
path: root/plugins/fishlim/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fishlim/test.c')
-rw-r--r--plugins/fishlim/test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/fishlim/test.c b/plugins/fishlim/test.c
index 2032496a..3511bbb1 100644
--- a/plugins/fishlim/test.c
+++ b/plugins/fishlim/test.c
@@ -22,10 +22,18 @@
 
 */
 
+#include <glib.h>
 #include <stdio.h>
 #include <string.h>
 #include "fish.h"
 
+// We can't use the XChat plugin API from here...
+gchar *get_config_filename() {
+    const gchar *homedir = g_get_home_dir();
+    return g_build_filename(homedir, ".xchat2", "blow.ini", NULL);
+}
+
+
 static int decrypt(int nick_count, char *nicks[]) {
     char encrypted[8192];
     while (fgets(encrypted, sizeof(encrypted), stdin)) {