Changes in storage_xml.c [aed00f8:1783ab6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
raed00f8 r1783ab6 87 87 char *pass_b64 = NULL; 88 88 unsigned char *pass_cr = NULL; 89 int pass_len ;89 int pass_len, local = 0; 90 90 struct prpl *prpl = NULL; 91 91 account_t *acc; … … 100 100 protocol = xt_find_attr( node, "protocol" ); 101 101 if( protocol ) 102 { 102 103 prpl = find_protocol( protocol ); 104 local = protocol_account_islocal( protocol ); 105 } 103 106 104 107 if( !handle || !pass_b64 || !protocol || !prpl ) … … 114 117 if( tag ) 115 118 set_setstr( &acc->set, "tag", tag ); 119 if( local ) 120 acc->flags |= ACC_FLAG_LOCAL; 116 121 } 117 122 else … … 181 186 strncpy( xd->given_nick, my_nick, MAX_NICK_LENGTH ); 182 187 xd->given_nick[MAX_NICK_LENGTH] = '\0'; 183 nick_lc( xd->given_nick );188 nick_lc( NULL, xd->given_nick ); 184 189 xd->given_pass = (char*) password; 185 190 … … 368 373 369 374 path2 = g_strdup( irc->user->nick ); 370 nick_lc( path2 );375 nick_lc( NULL, path2 ); 371 376 g_snprintf( path, sizeof( path ) - 20, "%s%s%s", global.conf->configdir, path2, ".xml" ); 372 377 g_free( path2 ); … … 424 429 425 430 lc = g_strdup( nick ); 426 nick_lc( lc );431 nick_lc( NULL, lc ); 427 432 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, lc, ".xml" ); 428 433 g_free( lc );
Note: See TracChangeset
for help on using the changeset viewer.