comparison src/oscar.c @ 401:7c74e2f579b5

[gaim-migrate @ 411] Heh, whoops. you can send messages to offline people now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 22:02:50 +0000
parents df5127560034
children a330017b3aa4
comparison
equal deleted inserted replaced
400:bb87776942c4 401:7c74e2f579b5
210 210
211 if (sess->logininfo.errorcode) { 211 if (sess->logininfo.errorcode) {
212 switch (sess->logininfo.errorcode) { 212 switch (sess->logininfo.errorcode) {
213 case 0x18: 213 case 0x18:
214 /* connecting too frequently */ 214 /* connecting too frequently */
215 strtok("983:", ":"); 215 show_error_dialog("983\0\0");
216 show_error_dialog("983");
217 break; 216 break;
218 case 0x05: 217 case 0x05:
219 /* Incorrect nick/password */ 218 /* Incorrect nick/password */
220 strtok("980:", ":"); 219 show_error_dialog("980\0\0");
221 show_error_dialog("980");
222 break; 220 break;
223 case 0x1c: 221 case 0x1c:
224 /* client too old */ 222 /* client too old */
225 strtok("981:", ":"); 223 show_error_dialog("981\0\0");
226 show_error_dialog("981");
227 break; 224 break;
228 } 225 }
229 sprintf(debug_buff, "Login Error Code 0x%04x\n", 226 sprintf(debug_buff, "Login Error Code 0x%04x\n",
230 sess->logininfo.errorcode); 227 sess->logininfo.errorcode);
231 debug_print(debug_buff); 228 debug_print(debug_buff);
595 case 0x0001: 592 case 0x0001:
596 if (subtype == 0x000a) { 593 if (subtype == 0x000a) {
597 /* sending messages too fast */ 594 /* sending messages too fast */
598 /* this also gets sent to us when our warning level 595 /* this also gets sent to us when our warning level
599 * changes, don't ask me why or how to interpret it */ 596 * changes, don't ask me why or how to interpret it */
600 strtok("960:someone", ":"); 597 show_error_dialog("960\0someone");
601 show_error_dialog("960");
602 } 598 }
603 break; 599 break;
604 case 0x0002: 600 case 0x0002:
605 if (subtype == 0x0001) { 601 if (subtype == 0x0001) {
606 /* unknown SNAC error */ 602 /* unknown SNAC error */
607 strtok("970:", ":"); 603 show_error_dialog("970\0\0");
608 show_error_dialog("970");
609 } 604 }
610 break; 605 break;
611 case 0x0004: 606 case 0x0004:
612 if (subtype == 0x0001) { 607 if (subtype == 0x0001) {
613 /* user is not logged in */ 608 /* user is not logged in */
614 strtok("901:User", ":"); 609 show_error_dialog("901\0User");
615 show_error_dialog("901");
616 } else if (subtype == 0x000a) { 610 } else if (subtype == 0x000a) {
617 /* message has been dropped */ 611 /* message has been dropped */
618 strtok("903:", ":"); 612 show_error_dialog("903\0\0");
619 show_error_dialog("903");
620 } 613 }
621 break; 614 break;
622 } 615 }
623 616
624 return 1; 617 return 1;
639 infotype = va_arg(ap, u_short); 632 infotype = va_arg(ap, u_short);
640 va_end(ap); 633 va_end(ap);
641 634
642 if (prof == NULL || !strlen(prof)) { 635 if (prof == NULL || !strlen(prof)) {
643 /* no info/away message */ 636 /* no info/away message */
644 strtok("977:", ":"); 637 show_error_dialog("977\0\0");
645 show_error_dialog("977");
646 return 1; 638 return 1;
647 } 639 }
648 640
649 snprintf(buf, sizeof buf, _("Username : <B>%s</B>\n<BR>" 641 snprintf(buf, sizeof buf, _("Username : <B>%s</B>\n<BR>"
650 "Warning Level : <B>%d %%</B>\n<BR>" 642 "Warning Level : <B>%d %%</B>\n<BR>"