Mercurial > pidgin.yaz
diff plugins/autorecon.c @ 1000:91b7377e7b45
[gaim-migrate @ 1010]
Plugins work again, I think. There may still be some bugginess.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 16 Oct 2000 20:11:18 +0000 |
parents | d96b511972fe |
children | 38452403563b |
line wrap: on
line diff
--- a/plugins/autorecon.c Sun Oct 15 03:55:23 2000 +0000 +++ b/plugins/autorecon.c Mon Oct 16 20:11:18 2000 +0000 @@ -17,29 +17,18 @@ return "When AOL kicks you off, this auto-reconnects you."; } -extern void dologin(GtkWidget *, GtkWidget *); - -void do_signon() { - if (!blist) - dologin(NULL, NULL); - if (!USE_OSCAR) { - if (blist) { - gtk_timeout_remove(recon); - forced_off = 0; - if (away_state) - do_away_message(NULL, last_away); - return; - } - } else { - gtk_timeout_remove(recon); - forced_off = 0; - if (blist && away_state) do_away_message(NULL, last_away); - return; - } +void do_signon(char *name) { + struct aim_user *u = find_user(name); + g_free(name); + serv_login(u); + gtk_timeout_remove(recon); + forced_off = 0; + if (away_state) do_away_message(NULL, last_away); } -void reconnect(void *m) { - recon = gtk_timeout_add(8000, (GtkFunction)do_signon, NULL); +void reconnect(struct gaim_connection *gc, void *m) { + char *name = g_strdup(gc->username); + recon = gtk_timeout_add(8000, (GtkFunction)do_signon, name); forced_off = 1; }