| 377 return; |
377 return; |
| 378 |
378 |
| 379 g_show_info_text(url_text, NULL); |
379 g_show_info_text(url_text, NULL); |
| 380 } |
380 } |
| 381 |
381 |
| 382 static char *show_error_message(char *d) |
382 static char *show_error_message() |
| 383 { |
383 { |
| 384 int no = atoi(strtok(NULL, ":")); |
384 int no = atoi(strtok(NULL, ":")); |
| 385 char *w = strtok(NULL, ":"); |
385 char *w = strtok(NULL, ":"); |
| 386 static char buf[256]; |
386 static char buf[256]; |
| 387 |
387 |
| 526 if (g_strncasecmp(buf + sizeof(struct sflap_hdr), "SIGN_ON", strlen("SIGN_ON"))) { |
526 if (g_strncasecmp(buf + sizeof(struct sflap_hdr), "SIGN_ON", strlen("SIGN_ON"))) { |
| 527 debug_printf("Didn't get SIGN_ON! buf was: %s\n", |
527 debug_printf("Didn't get SIGN_ON! buf was: %s\n", |
| 528 buf + sizeof(struct sflap_hdr)); |
528 buf + sizeof(struct sflap_hdr)); |
| 529 if (!g_strncasecmp(buf + sizeof(struct sflap_hdr), "ERROR", 5)) { |
529 if (!g_strncasecmp(buf + sizeof(struct sflap_hdr), "ERROR", 5)) { |
| 530 strtok(buf + sizeof(struct sflap_hdr), ":"); |
530 strtok(buf + sizeof(struct sflap_hdr), ":"); |
| 531 hide_login_progress(gc, show_error_message(buf + |
531 hide_login_progress(gc, show_error_message()); |
| 532 sizeof(struct sflap_hdr))); |
|
| 533 } else |
532 } else |
| 534 hide_login_progress(gc, _("Authentication Failed")); |
533 hide_login_progress(gc, _("Authentication Failed")); |
| 535 signoff(gc); |
534 signoff(gc); |
| 536 return; |
535 return; |
| 537 } |
536 } |
| 654 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", c); |
653 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", c); |
| 655 g_free(tmp); |
654 g_free(tmp); |
| 656 |
655 |
| 657 serv_got_update(gc, c, logged, evil, signon, time_idle, type, 0); |
656 serv_got_update(gc, c, logged, evil, signon, time_idle, type, 0); |
| 658 } else if (!strcasecmp(c, "ERROR")) { |
657 } else if (!strcasecmp(c, "ERROR")) { |
| 659 c = strtok(NULL, ":"); |
658 do_error_dialog(show_error_message(), "TOC Error"); |
| 660 show_error_message(c); |
|
| 661 } else if (!strcasecmp(c, "EVILED")) { |
659 } else if (!strcasecmp(c, "EVILED")) { |
| 662 int lev; |
660 int lev; |
| 663 char *name; |
661 char *name; |
| 664 |
662 |
| 665 sscanf(strtok(NULL, ":"), "%d", &lev); |
663 sscanf(strtok(NULL, ":"), "%d", &lev); |