diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 09:59:58 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-30 09:59:58 +0100 |
commit | 29f7a9180caa1b8278bf3d9c6a9b49a0b59a1000 (patch) | |
tree | c22557d059e0137a84e3b948963d409a7c225ee6 /plugins/lua | |
parent | 66be50f3350248fac4292287776f9e416de77f5a (diff) |
Rebrand get_info(xchatdir) but remain compatible for Perl and Python
Diffstat (limited to 'plugins/lua')
-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 6f17b50d..c887e31f 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, "xchatdirfs"); + xdir = hexchat_get_info (ph, "hexchatdirfs"); snprintf (file, PATH_MAX, "%s/addons/%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, "xchatdirfs"); + xdir = hexchat_get_info (ph, "hexchatdirfs"); xsubdir = g_build_filename (xdir, "addons", NULL); lxc_autoload_from_path (xsubdir); g_free (xsubdir); |