Changeset 2b14eef
- Timestamp:
- 2006-06-20T22:14:46Z (18 years ago)
- Branches:
- master
- Children:
- 00ab350
- Parents:
- 9b46b64
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
account.c
r9b46b64 r2b14eef 45 45 a->user = g_strdup( user ); 46 46 a->pass = g_strdup( pass ); 47 a->auto_connect = 1; 47 48 a->irc = irc; 48 49 -
account.h
r9b46b64 r2b14eef 34 34 char *server; 35 35 36 int auto_connect; 36 37 int reconnect; 37 38 -
root_commands.c
r9b46b64 r2b14eef 307 307 308 308 for( a = irc->accounts; a; a = a->next ) 309 if( !a->gc )309 if( !a->gc && a->auto_connect ) 310 310 account_on( irc, a ); 311 311 } -
storage_xml.c
r9b46b64 r2b14eef 126 126 else if( g_strcasecmp( element_name, "account" ) == 0 ) 127 127 { 128 char *protocol, *handle, *server, *password ;128 char *protocol, *handle, *server, *password, *autoconnect; 129 129 struct prpl *prpl = NULL; 130 130 … … 132 132 password = xml_attr( attr_names, attr_values, "password" ); 133 133 server = xml_attr( attr_names, attr_values, "server" ); 134 autoconnect = xml_attr( attr_names, attr_values, "autoconnect" ); 134 135 135 136 protocol = xml_attr( attr_names, attr_values, "protocol" ); … … 148 149 if( server ) 149 150 xd->current_account->server = g_strdup( server ); 151 if( autoconnect ) 152 /* Return value doesn't matter, since account_add() already sets 153 a default! */ 154 sscanf( autoconnect, "%d", &xd->current_account->auto_connect ); 150 155 } 151 156 } … … 385 390 for( acc = irc->accounts; acc; acc = acc->next ) 386 391 { 387 if( !xml_printf( fd, "\t<account protocol=\"%s\" handle=\"%s\" password=\"%s\" autoconnect=\"% s\"", acc->prpl->name, acc->user, acc->pass, "yes") )392 if( !xml_printf( fd, "\t<account protocol=\"%s\" handle=\"%s\" password=\"%s\" autoconnect=\"%d\"", acc->prpl->name, acc->user, acc->pass, acc->auto_connect ) ) 388 393 goto write_error; 389 394 if( acc->server && acc->server[0] && !xml_printf( fd, " server=\"%s\"", acc->server ) )
Note: See TracChangeset
for help on using the changeset viewer.