diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-05 20:34:31 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-05 20:34:31 +0200 |
commit | 7e3592e96b27ec8375e4b28354bcf9ed4cf5943b (patch) | |
tree | aaab2237a1401375c5cd047382ca05119990c85a /storage_xml.c | |
parent | 5b52a4895e5a59ff6509f7771f4d8665737688c3 (diff) |
Fixed text_load(), added detection of primary storage backends without
save support (which shouldn't be allowed) and added a call to nick_lc()
to xml_save() so at least nicks should now be case-insensitive.
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; |