1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

Try to create the addons folder initially

This commit is contained in:
Berke Viktor 2013-02-16 15:28:44 +01:00
parent ef18734f20
commit e41a84b094

View File

@ -619,7 +619,7 @@ convert_with_fallback (const char *str, const char *fallback)
void void
load_config (void) load_config (void)
{ {
char *cfg, *sp; char *cfg, *sp, *buf;
const char *username, *realname; const char *username, *realname;
int res, val, i; int res, val, i;
#ifdef WIN32 #ifdef WIN32
@ -834,6 +834,10 @@ load_config (void)
g_mkdir (prefs.hex_dcc_dir, 0700); g_mkdir (prefs.hex_dcc_dir, 0700);
g_mkdir (prefs.hex_dcc_completed_dir, 0700); g_mkdir (prefs.hex_dcc_completed_dir, 0700);
buf = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "addons", get_xdir ());
g_mkdir (buf, 0700);
g_free (buf);
} }
if (prefs.hex_gui_win_height < 138) if (prefs.hex_gui_win_height < 138)
prefs.hex_gui_win_height = 138; prefs.hex_gui_win_height = 138;