summary refs log tree commit diff stats
path: root/plugins/fishlim/test.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-25 10:24:33 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-25 10:24:33 +0100
commit81ed389e71cda96c1bd5935dd5f9cb98327870ce (patch)
treeaf69e7a16110b55046cc36982be6c94fc26fcbd5 /plugins/fishlim/test.c
parent3067b7b267d881963498d277d657e679ac15af45 (diff)
get in sync with fishlim upstream
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)) {