| 185 gc = new_gaim_conn(account); |
185 gc = new_gaim_conn(account); |
| 186 gc->proto_data = tdt = g_new0(struct toc_data, 1); |
186 gc->proto_data = tdt = g_new0(struct toc_data, 1); |
| 187 gc->flags |= OPT_CONN_HTML; |
187 gc->flags |= OPT_CONN_HTML; |
| 188 gc->flags |= OPT_CONN_AUTO_RESP; |
188 gc->flags |= OPT_CONN_AUTO_RESP; |
| 189 |
189 |
| 190 g_snprintf(buf, sizeof buf, "Looking up %s", |
190 g_snprintf(buf, sizeof buf, _("Looking up %s"), |
| 191 account->proto_opt[USEROPT_AUTH][0] ? account->proto_opt[USEROPT_AUTH] : TOC_HOST); |
191 account->proto_opt[USEROPT_AUTH][0] ? account->proto_opt[USEROPT_AUTH] : TOC_HOST); |
| 192 set_login_progress(gc, 1, buf); |
192 set_login_progress(gc, 1, buf); |
| 193 |
193 |
| 194 debug_printf("* Client connects to TOC\n"); |
194 debug_printf("* Client connects to TOC\n"); |
| 195 if (proxy_connect(account, account->proto_opt[USEROPT_AUTH][0] ? |
195 if (proxy_connect(account, account->proto_opt[USEROPT_AUTH][0] ? |
| 250 /* i know a lot of people like to look at gaim to see how TOC works. so i'll comment |
250 /* i know a lot of people like to look at gaim to see how TOC works. so i'll comment |
| 251 * on what this does. it's really simple. when there's data ready to be read from the |
251 * on what this does. it's really simple. when there's data ready to be read from the |
| 252 * toc_fd file descriptor, toc_callback is called, with gc passed as its data arg. */ |
252 * toc_fd file descriptor, toc_callback is called, with gc passed as its data arg. */ |
| 253 gc->inpa = gaim_input_add(tdt->toc_fd, GAIM_INPUT_READ, toc_callback, gc); |
253 gc->inpa = gaim_input_add(tdt->toc_fd, GAIM_INPUT_READ, toc_callback, gc); |
| 254 |
254 |
| 255 g_snprintf(buf, sizeof(buf), "Signon: %s", gc->username); |
255 g_snprintf(buf, sizeof(buf), _("Signon: %s"), gc->username); |
| 256 set_login_progress(gc, 2, buf); |
256 set_login_progress(gc, 2, buf); |
| 257 } |
257 } |
| 258 |
258 |
| 259 static void toc_close(struct gaim_connection *gc) |
259 static void toc_close(struct gaim_connection *gc) |
| 260 { |
260 { |