diff options
Diffstat (limited to 'storage_xml.c')
-rw-r--r-- | storage_xml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage_xml.c b/storage_xml.c index b01f35d6..2585b475 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -381,7 +381,10 @@ static storage_status_t xml_save( irc_t *irc, int overwrite ) return STORAGE_OTHER_ERROR; } - g_snprintf( path, sizeof( path ) - 2, "%s%s%s", global.conf->configdir, irc->nick, ".xml" ); + path2 = g_strdup( irc->nick ); + nick_lc( path2 ); + g_snprintf( path, sizeof( path ) - 2, "%s%s%s", global.conf->configdir, path2, ".xml" ); + g_free( path2 ); if( !overwrite && access( path, F_OK ) != -1 ) return STORAGE_ALREADY_EXISTS; |