Mercurial > pidgin
comparison src/protocols/icq/gaim_icq.c @ 2516:d379814be59e
[gaim-migrate @ 2529]
so is this
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 16 Oct 2001 18:12:33 +0000 |
parents | 3ec36a342496 |
children | 5efa8077107f |
comparison
equal
deleted
inserted
replaced
2515:3ec36a342496 | 2516:d379814be59e |
---|---|
78 | 78 |
79 static void icq_online(icq_Link *link) { | 79 static void icq_online(icq_Link *link) { |
80 struct gaim_connection *gc = link->icq_UserData; | 80 struct gaim_connection *gc = link->icq_UserData; |
81 struct icq_data *id = (struct icq_data *)gc->proto_data; | 81 struct icq_data *id = (struct icq_data *)gc->proto_data; |
82 debug_printf("%s is now online.\n", gc->username); | 82 debug_printf("%s is now online.\n", gc->username); |
83 id->connected = TRUE; | 83 if (!id->connected) { |
84 account_online(gc); | 84 account_online(gc); |
85 serv_finish_login(gc); | 85 serv_finish_login(gc); |
86 | 86 icq_ChangeStatus(id->link, STATUS_ONLINE); |
87 icq_ChangeStatus(id->link, STATUS_ONLINE); | 87 id->connected = TRUE; |
88 } | |
88 } | 89 } |
89 | 90 |
90 static void icq_logged_off(icq_Link *link) { | 91 static void icq_logged_off(icq_Link *link) { |
91 struct gaim_connection *gc = link->icq_UserData; | 92 struct gaim_connection *gc = link->icq_UserData; |
92 struct icq_data *id = (struct icq_data *)gc->proto_data; | 93 struct icq_data *id = (struct icq_data *)gc->proto_data; |
101 hide_login_progress(gc, "Unable to connect"); | 102 hide_login_progress(gc, "Unable to connect"); |
102 signoff(gc); | 103 signoff(gc); |
103 return; | 104 return; |
104 } | 105 } |
105 | 106 |
106 icq_Login(link, STATUS_ONLINE); | 107 icq_Login(link, id->cur_status); |
107 id->cur_status = STATUS_ONLINE; | |
108 } | 108 } |
109 | 109 |
110 void strip_linefeed(gchar *text) | 110 void strip_linefeed(gchar *text) |
111 { | 111 { |
112 int i, j; | 112 int i, j; |
317 hide_login_progress(gc, "Unable to connect"); | 317 hide_login_progress(gc, "Unable to connect"); |
318 signoff(gc); | 318 signoff(gc); |
319 return; | 319 return; |
320 } | 320 } |
321 | 321 |
322 id->cur_status = STATUS_ONLINE; | |
322 icq_Login(link, STATUS_ONLINE); | 323 icq_Login(link, STATUS_ONLINE); |
323 id->cur_status = STATUS_ONLINE; | |
324 | 324 |
325 set_login_progress(gc, 0, "Connecting..."); | 325 set_login_progress(gc, 0, "Connecting..."); |
326 } | 326 } |
327 | 327 |
328 static void icq_close(struct gaim_connection *gc) { | 328 static void icq_close(struct gaim_connection *gc) { |