Mercurial > pidgin
comparison src/protocols/simple/simple.c @ 11837:fa742ad8068c
[gaim-migrate @ 14128]
Don't pass our active GaimStatus to the login PRPL callback...
It's not used by most PRPLS, and that ones that DO use it
probably shouldn't. Ideally the PRPLs won't store any info
about their own status, message, etc. All that should be in
the core status API, and when it needs some info it should
query the core to get it.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 26 Oct 2005 05:40:02 +0000 |
| parents | 11e95968c9ff |
| children | cbebda5f019c |
comparison
equal
deleted
inserted
replaced
| 11836:86cdfd6b32a6 | 11837:fa742ad8068c |
|---|---|
| 1242 sip->resendtimeout = gaim_timeout_add(2500, (GSourceFunc)resend_timeout, sip); | 1242 sip->resendtimeout = gaim_timeout_add(2500, (GSourceFunc)resend_timeout, sip); |
| 1243 do_register(sip); | 1243 do_register(sip); |
| 1244 } | 1244 } |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 static void simple_login(GaimAccount *account, GaimStatus *status) | 1247 static void simple_login(GaimAccount *account) |
| 1248 { | 1248 { |
| 1249 GaimConnection *gc; | 1249 GaimConnection *gc; |
| 1250 struct simple_account_data *sip; | 1250 struct simple_account_data *sip; |
| 1251 gchar **userserver; | 1251 gchar **userserver; |
| 1252 gchar *hosttoconnect; | 1252 gchar *hosttoconnect; |
| 1273 | 1273 |
| 1274 sip->buddies = g_hash_table_new((GHashFunc)simple_ht_hash_nick, (GEqualFunc)simple_ht_equals_nick); | 1274 sip->buddies = g_hash_table_new((GHashFunc)simple_ht_hash_nick, (GEqualFunc)simple_ht_equals_nick); |
| 1275 | 1275 |
| 1276 gaim_connection_update_progress(gc, _("Connecting"), 1, 2); | 1276 gaim_connection_update_progress(gc, _("Connecting"), 1, 2); |
| 1277 | 1277 |
| 1278 /* TODO: Set the status correctly. */ | |
| 1278 sip->status = g_strdup("available"); | 1279 sip->status = g_strdup("available"); |
| 1279 | 1280 |
| 1280 if(!gaim_account_get_bool(account, "useproxy", FALSE)) { | 1281 if(!gaim_account_get_bool(account, "useproxy", FALSE)) { |
| 1281 hosttoconnect = g_strdup(sip->servername); | 1282 hosttoconnect = g_strdup(sip->servername); |
| 1282 } else { | 1283 } else { |
