comparison src/toc.c @ 1146:22f3c32a28f6

[gaim-migrate @ 1156] i think this handles this better. has PAUSE ever happened? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 27 Nov 2000 13:31:26 +0000
parents cd96ca1aed02
children 3063e6743913
comparison
equal deleted inserted replaced
1145:cd96ca1aed02 1146:22f3c32a28f6
45 #include "pixmaps/aol_icon.xpm" 45 #include "pixmaps/aol_icon.xpm"
46 #include "pixmaps/away_icon.xpm" 46 #include "pixmaps/away_icon.xpm"
47 #include "pixmaps/dt_icon.xpm" 47 #include "pixmaps/dt_icon.xpm"
48 #include "pixmaps/free_icon.xpm" 48 #include "pixmaps/free_icon.xpm"
49 49
50 #define REVISION "gaim:$Revision: 1155 $" 50 #define REVISION "gaim:$Revision: 1156 $"
51 51
52 #define TYPE_SIGNON 1 52 #define TYPE_SIGNON 1
53 #define TYPE_DATA 2 53 #define TYPE_DATA 2
54 #define TYPE_ERROR 3 54 #define TYPE_ERROR 3
55 #define TYPE_SIGNOFF 4 55 #define TYPE_SIGNOFF 4
342 /* we should only get here after a PAUSE */ 342 /* we should only get here after a PAUSE */
343 if (tdt->state != STATE_PAUSE) 343 if (tdt->state != STATE_PAUSE)
344 debug_printf("got SIGN_ON but not PAUSE!\n"); 344 debug_printf("got SIGN_ON but not PAUSE!\n");
345 else { 345 else {
346 tdt->state = STATE_ONLINE; 346 tdt->state = STATE_ONLINE;
347 do_error_dialog(_("TOC has come back from its pause. You may now send" 347 g_snprintf(snd, sizeof snd, "toc_signon %s %d %s %s %s \"%s\"",
348 " messages again."), _("TOC Resume")); 348 AUTH_HOST, AUTH_PORT, normalize(gc->username),
349 roast_password(gc->password), LANGUAGE, REVISION);
350 if (sflap_send(gc, snd, -1, TYPE_DATA) < 0) {
351 hide_login_progress(gc, _("Disconnected."));
352 signoff(gc);
353 return;
354 }
349 do_import(0, gc); 355 do_import(0, gc);
350 g_snprintf(snd, sizeof snd, "toc_init_done"); 356 g_snprintf(snd, sizeof snd, "toc_init_done");
351 sflap_send(gc, snd, -1, TYPE_DATA); 357 sflap_send(gc, snd, -1, TYPE_DATA);
358 do_error_dialog(_("TOC has come back from its pause. You may now send"
359 " messages again."), _("TOC Resume"));
352 } 360 }
353 } else if (!strcasecmp(c, "CONFIG")) { 361 } else if (!strcasecmp(c, "CONFIG")) {
354 c = strtok(NULL, ":"); 362 c = strtok(NULL, ":");
355 parse_toc_buddy_list(gc, c, 0); 363 parse_toc_buddy_list(gc, c, 0);
356 } else if (!strcasecmp(c, "NICK")) { 364 } else if (!strcasecmp(c, "NICK")) {