| 135 |
135 |
| 136 account = g_new0(GaimAccount, 1); |
136 account = g_new0(GaimAccount, 1); |
| 137 |
137 |
| 138 gaim_account_set_username(account, username); |
138 gaim_account_set_username(account, username); |
| 139 |
139 |
| 140 if(protocol_id) |
140 gaim_account_set_protocol_id(account, protocol_id ? protocol_id : GAIM_PROTO_DEFAULT); |
| 141 gaim_account_set_protocol_id(account, protocol_id); |
|
| 142 else |
|
| 143 gaim_account_set_protocol(account, GAIM_PROTO_DEFAULT); |
|
| 144 |
141 |
| 145 account->settings = g_hash_table_new_full(g_str_hash, g_str_equal, |
142 account->settings = g_hash_table_new_full(g_str_hash, g_str_equal, |
| 146 g_free, delete_setting); |
143 g_free, delete_setting); |
| 147 account->ui_settings = g_hash_table_new_full(g_str_hash, g_str_equal, |
144 account->ui_settings = g_hash_table_new_full(g_str_hash, g_str_equal, |
| 148 g_free, (GDestroyNotify)g_hash_table_destroy); |
145 g_free, (GDestroyNotify)g_hash_table_destroy); |