diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-11-04 23:55:36 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-11-04 23:55:36 +0100 |
commit | db218817fdc895aa2e3e52a71aa2f4423a534423 (patch) | |
tree | 42adbac9f667aa7a1dba5386150738fac84aeafc /plugins/lua/lua.c | |
parent | ad16ed3933b2904f3e4b206a67c4b67cc86622bc (diff) |
Use configdir instead of *xchatdir*
Diffstat (limited to 'plugins/lua/lua.c')
-rw-r--r-- | plugins/lua/lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c index cd237c24..872d3081 100644 --- a/plugins/lua/lua.c +++ b/plugins/lua/lua.c @@ -524,7 +524,7 @@ static int lxc_cb_load(char *word[], char *word_eol[], void *userdata) } else { - xdir = hexchat_get_info (ph, "hexchatdirfs"); + xdir = hexchat_get_info (ph, "configdir"); snprintf (file, PATH_MAX, "%s" G_DIR_SEPARATOR_S "addons" G_DIR_SEPARATOR_S "%s", xdir, word[2]); } } @@ -678,7 +678,7 @@ int hexchat_plugin_init(hexchat_plugin *plugin_handle, hexchat_hook_command(ph, "UNLOAD", HEXCHAT_PRI_NORM, lxc_cb_unload, NULL, NULL); hexchat_hook_command(ph, "LUA", HEXCHAT_PRI_NORM, lxc_cb_lua, "Usage: LUA <code>, executes <code> in a new lua state", NULL); - xdir = hexchat_get_info (ph, "hexchatdirfs"); + xdir = hexchat_get_info (ph, "configdir"); xsubdir = g_build_filename (xdir, "addons", NULL); lxc_autoload_from_path (xsubdir); g_free (xsubdir); |