Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
999:0b5db8cdd30f | 1000:91b7377e7b45 |
---|---|
15 | 15 |
16 char *description() { | 16 char *description() { |
17 return "When AOL kicks you off, this auto-reconnects you."; | 17 return "When AOL kicks you off, this auto-reconnects you."; |
18 } | 18 } |
19 | 19 |
20 extern void dologin(GtkWidget *, GtkWidget *); | 20 void do_signon(char *name) { |
21 | 21 struct aim_user *u = find_user(name); |
22 void do_signon() { | 22 g_free(name); |
23 if (!blist) | 23 serv_login(u); |
24 dologin(NULL, NULL); | 24 gtk_timeout_remove(recon); |
25 if (!USE_OSCAR) { | 25 forced_off = 0; |
26 if (blist) { | 26 if (away_state) do_away_message(NULL, last_away); |
27 gtk_timeout_remove(recon); | |
28 forced_off = 0; | |
29 if (away_state) | |
30 do_away_message(NULL, last_away); | |
31 return; | |
32 } | |
33 } else { | |
34 gtk_timeout_remove(recon); | |
35 forced_off = 0; | |
36 if (blist && away_state) do_away_message(NULL, last_away); | |
37 return; | |
38 } | |
39 } | 27 } |
40 | 28 |
41 void reconnect(void *m) { | 29 void reconnect(struct gaim_connection *gc, void *m) { |
42 recon = gtk_timeout_add(8000, (GtkFunction)do_signon, NULL); | 30 char *name = g_strdup(gc->username); |
31 recon = gtk_timeout_add(8000, (GtkFunction)do_signon, name); | |
43 forced_off = 1; | 32 forced_off = 1; |
44 } | 33 } |
45 | 34 |
46 void away_toggle(void *m) { | 35 void away_toggle(void *m) { |
47 if ((int)m == 1) { | 36 if ((int)m == 1) { |