Mercurial > pidgin
comparison src/toc.c @ 301:f905caee43ca
[gaim-migrate @ 311]
Hopefully this'll fix the double-error bug.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 01 Jun 2000 05:06:59 +0000 |
parents | b32c83750104 |
children | 35796808896a |
comparison
equal
deleted
inserted
replaced
300:b32c83750104 | 301:f905caee43ca |
---|---|
137 save_prefs(); | 137 save_prefs(); |
138 | 138 |
139 g_snprintf(buf, sizeof(buf), "Retrieving config..."); | 139 g_snprintf(buf, sizeof(buf), "Retrieving config..."); |
140 set_login_progress(5, buf); | 140 set_login_progress(5, buf); |
141 config = toc_wait_config(); | 141 config = toc_wait_config(); |
142 state = STATE_ONLINE; | |
142 | 143 |
143 #ifdef USE_APPLET | 144 #ifdef USE_APPLET |
144 make_buddy(); | 145 make_buddy(); |
145 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { | 146 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { |
146 gnome_buddy_show(); | 147 gnome_buddy_show(); |
345 case TYPE_DATA: | 346 case TYPE_DATA: |
346 if (!strncasecmp(buffer + sizeof(struct sflap_hdr), "SIGN_ON:", strlen("SIGN_ON:"))) | 347 if (!strncasecmp(buffer + sizeof(struct sflap_hdr), "SIGN_ON:", strlen("SIGN_ON:"))) |
347 state = STATE_SIGNON_ACK; | 348 state = STATE_SIGNON_ACK; |
348 else if (!strncasecmp(buffer + sizeof(struct sflap_hdr), "CONFIG:", strlen("CONFIG:"))) { | 349 else if (!strncasecmp(buffer + sizeof(struct sflap_hdr), "CONFIG:", strlen("CONFIG:"))) { |
349 state = STATE_CONFIG; | 350 state = STATE_CONFIG; |
350 } else if (state != STATE_ONLINE && !strncasecmp(buffer + sizeof(struct sflap_hdr), "ERROR:", strlen("ERROR:"))) { | 351 } else if (!strncasecmp(buffer + sizeof(struct sflap_hdr), "ERROR:", strlen("ERROR:"))) { |
351 c = strtok(buffer + sizeof(struct sflap_hdr) + strlen("ERROR:"), ":"); | 352 c = strtok(buffer + sizeof(struct sflap_hdr) + strlen("ERROR:"), ":"); |
352 show_error_dialog(c); | 353 show_error_dialog(c); |
353 } | 354 } |
354 | 355 |
355 sprintf(debug_buff, "Data: %s\n",buffer + sizeof(struct sflap_hdr)); | 356 sprintf(debug_buff, "Data: %s\n",buffer + sizeof(struct sflap_hdr)); |
442 serv_got_update(c, logged, evil, signon, time_idle, type); | 443 serv_got_update(c, logged, evil, signon, time_idle, type); |
443 | 444 |
444 } else if (!strcasecmp(c, "CONFIG")) { | 445 } else if (!strcasecmp(c, "CONFIG")) { |
445 /* do we want to load the buddy list again here? */ | 446 /* do we want to load the buddy list again here? */ |
446 } else if (!strcasecmp(c, "ERROR")) { | 447 } else if (!strcasecmp(c, "ERROR")) { |
448 /* This should be handled by wait_reply | |
447 c = strtok(NULL,":"); | 449 c = strtok(NULL,":"); |
448 show_error_dialog(c); | 450 show_error_dialog(c); |
451 */ | |
449 } else if (!strcasecmp(c, "NICK")) { | 452 } else if (!strcasecmp(c, "NICK")) { |
450 c = strtok(NULL,":"); | 453 c = strtok(NULL,":"); |
451 g_snprintf(current_user->username, sizeof(current_user->username), "%s", c); | 454 g_snprintf(current_user->username, sizeof(current_user->username), "%s", c); |
452 } else if (!strcasecmp(c, "IM_IN")) { | 455 } else if (!strcasecmp(c, "IM_IN")) { |
453 char *away, *message; | 456 char *away, *message; |