Mercurial > pidgin.yaz
comparison src/oscar.c @ 1000:91b7377e7b45
[gaim-migrate @ 1010]
Plugins work again, I think. There may still be some bugginess.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 16 Oct 2000 20:11:18 +0000 |
parents | 70c685de2be5 |
children | 1d8f05ea6bdf |
comparison
equal
deleted
inserted
replaced
999:0b5db8cdd30f | 1000:91b7377e7b45 |
---|---|
351 if (sess->logininfo.errorcode) { | 351 if (sess->logininfo.errorcode) { |
352 switch (sess->logininfo.errorcode) { | 352 switch (sess->logininfo.errorcode) { |
353 case 0x18: | 353 case 0x18: |
354 /* connecting too frequently */ | 354 /* connecting too frequently */ |
355 do_error_dialog(_("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."), _("Gaim - Error")); | 355 do_error_dialog(_("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."), _("Gaim - Error")); |
356 plugin_event(event_error, (void *)983, 0, 0); | 356 plugin_event(event_error, (void *)983, 0, 0, 0); |
357 break; | 357 break; |
358 case 0x05: | 358 case 0x05: |
359 /* Incorrect nick/password */ | 359 /* Incorrect nick/password */ |
360 do_error_dialog(_("Incorrect nickname or password."), _("Gaim - Error")); | 360 do_error_dialog(_("Incorrect nickname or password."), _("Gaim - Error")); |
361 plugin_event(event_error, (void *)980, 0, 0); | 361 plugin_event(event_error, (void *)980, 0, 0, 0); |
362 break; | 362 break; |
363 case 0x1c: | 363 case 0x1c: |
364 /* client too old */ | 364 /* client too old */ |
365 do_error_dialog(_("The client version you are using is too old. Please upgrade at http://www.marko.net/gaim/"), _("Gaim - Error")); | 365 do_error_dialog(_("The client version you are using is too old. Please upgrade at http://www.marko.net/gaim/"), _("Gaim - Error")); |
366 plugin_event(event_error, (void *)989, 0, 0); | 366 plugin_event(event_error, (void *)989, 0, 0, 0); |
367 break; | 367 break; |
368 } | 368 } |
369 sprintf(debug_buff, "Login Error Code 0x%04x\n", | 369 sprintf(debug_buff, "Login Error Code 0x%04x\n", |
370 sess->logininfo.errorcode); | 370 sess->logininfo.errorcode); |
371 debug_print(debug_buff); | 371 debug_print(debug_buff); |
805 switch(reason) { | 805 switch(reason) { |
806 case 1: | 806 case 1: |
807 /* message too large */ | 807 /* message too large */ |
808 sprintf(buf, _("You missed a message from %s because it was too large."), userinfo->sn); | 808 sprintf(buf, _("You missed a message from %s because it was too large."), userinfo->sn); |
809 do_error_dialog(buf, _("Gaim - Error")); | 809 do_error_dialog(buf, _("Gaim - Error")); |
810 plugin_event(event_error, (void *)961, 0, 0); | 810 plugin_event(event_error, (void *)961, 0, 0, 0); |
811 break; | 811 break; |
812 default: | 812 default: |
813 sprintf(buf, _("You missed a message from %s for unknown reasons."), userinfo->sn); | 813 sprintf(buf, _("You missed a message from %s for unknown reasons."), userinfo->sn); |
814 do_error_dialog(buf, _("Gaim - Error")); | 814 do_error_dialog(buf, _("Gaim - Error")); |
815 plugin_event(event_error, (void *)970, 0, 0); | 815 plugin_event(event_error, (void *)970, 0, 0, 0); |
816 break; | 816 break; |
817 } | 817 } |
818 | 818 |
819 return 1; | 819 return 1; |
820 } | 820 } |
876 if (prof == NULL || !strlen(prof)) { | 876 if (prof == NULL || !strlen(prof)) { |
877 /* no info/away message */ | 877 /* no info/away message */ |
878 char buf[1024]; | 878 char buf[1024]; |
879 sprintf(buf, _("%s has no info/away message."), info->sn); | 879 sprintf(buf, _("%s has no info/away message."), info->sn); |
880 do_error_dialog(buf, _("Gaim - Error")); | 880 do_error_dialog(buf, _("Gaim - Error")); |
881 plugin_event(event_error, (void *)977, 0, 0); | 881 plugin_event(event_error, (void *)977, 0, 0, 0); |
882 return 1; | 882 return 1; |
883 } | 883 } |
884 | 884 |
885 snprintf(buf, sizeof buf, _("Username : <B>%s</B>\n<BR>" | 885 snprintf(buf, sizeof buf, _("Username : <B>%s</B>\n<BR>" |
886 "Warning Level : <B>%d %%</B>\n<BR>" | 886 "Warning Level : <B>%d %%</B>\n<BR>" |
1524 | 1524 |
1525 cn = aim_chat_getconn(odata->sess, b->name); | 1525 cn = aim_chat_getconn(odata->sess, b->name); |
1526 aim_chat_send_im(odata->sess, cn, message); | 1526 aim_chat_send_im(odata->sess, cn, message); |
1527 } | 1527 } |
1528 | 1528 |
1529 struct prpl *oscar_init() { | 1529 void oscar_init(struct prpl *ret) { |
1530 struct prpl *ret = g_new0(struct prpl, 1); | |
1531 | |
1532 ret->protocol = PROTO_OSCAR; | 1530 ret->protocol = PROTO_OSCAR; |
1533 ret->name = oscar_name; | 1531 ret->name = oscar_name; |
1534 ret->login = oscar_login; | 1532 ret->login = oscar_login; |
1535 ret->close = oscar_close; | 1533 ret->close = oscar_close; |
1536 ret->send_im = oscar_send_im; | 1534 ret->send_im = oscar_send_im; |
1554 ret->chat_invite = oscar_chat_invite; | 1552 ret->chat_invite = oscar_chat_invite; |
1555 ret->chat_leave = oscar_chat_leave; | 1553 ret->chat_leave = oscar_chat_leave; |
1556 ret->chat_whisper = oscar_chat_whisper; | 1554 ret->chat_whisper = oscar_chat_whisper; |
1557 ret->chat_send = oscar_chat_send; | 1555 ret->chat_send = oscar_chat_send; |
1558 ret->keepalive = oscar_keepalive; | 1556 ret->keepalive = oscar_keepalive; |
1559 | |
1560 return ret; | |
1561 } | 1557 } |
1562 | 1558 |
1563 #endif | 1559 #endif |