diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-11-25 10:24:33 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-11-25 10:24:33 +0100 |
commit | 81ed389e71cda96c1bd5935dd5f9cb98327870ce (patch) | |
tree | af69e7a16110b55046cc36982be6c94fc26fcbd5 /plugins/fishlim/test.c | |
parent | 3067b7b267d881963498d277d657e679ac15af45 (diff) |
get in sync with fishlim upstream
Diffstat (limited to 'plugins/fishlim/test.c')
-rw-r--r-- | plugins/fishlim/test.c | 8 |
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)) { |