Mercurial > pidgin
comparison src/oscar.c @ 1038:daad2440a642
[gaim-migrate @ 1048]
i have homework i need to be doing. it's due in less than 7 hours, and i haven't started and i need to sleep.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Oct 2000 10:49:53 +0000 |
parents | 643a4d81c18a |
children | 67ed2ee5be9f |
comparison
equal
deleted
inserted
replaced
1037:1c663beef29d | 1038:daad2440a642 |
---|---|
351 | 351 |
352 if (sess->logininfo.errorcode) { | 352 if (sess->logininfo.errorcode) { |
353 switch (sess->logininfo.errorcode) { | 353 switch (sess->logininfo.errorcode) { |
354 case 0x18: | 354 case 0x18: |
355 /* connecting too frequently */ | 355 /* connecting too frequently */ |
356 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 hide_login_progress(gc, _("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.")); |
357 plugin_event(event_error, (void *)983, 0, 0, 0); | 357 plugin_event(event_error, (void *)983, 0, 0, 0); |
358 break; | 358 break; |
359 case 0x05: | 359 case 0x05: |
360 /* Incorrect nick/password */ | 360 /* Incorrect nick/password */ |
361 do_error_dialog(_("Incorrect nickname or password."), _("Gaim - Error")); | 361 hide_login_progress(gc, _("Incorrect nickname or password.")); |
362 plugin_event(event_error, (void *)980, 0, 0, 0); | 362 plugin_event(event_error, (void *)980, 0, 0, 0); |
363 break; | 363 break; |
364 case 0x1c: | 364 case 0x1c: |
365 /* client too old */ | 365 /* client too old */ |
366 do_error_dialog(_("The client version you are using is too old. Please upgrade at http://www.marko.net/gaim/"), _("Gaim - Error")); | 366 hide_login_progress(gc, _("The client version you are using is too old. Please upgrade at http://www.marko.net/gaim/")); |
367 plugin_event(event_error, (void *)989, 0, 0, 0); | 367 plugin_event(event_error, (void *)989, 0, 0, 0); |
368 break; | |
369 default: | |
370 hide_login_progress(gc, _("Authentication Failed")); | |
368 break; | 371 break; |
369 } | 372 } |
370 sprintf(debug_buff, "Login Error Code 0x%04x\n", | 373 sprintf(debug_buff, "Login Error Code 0x%04x\n", |
371 sess->logininfo.errorcode); | 374 sess->logininfo.errorcode); |
372 debug_print(debug_buff); | 375 debug_print(debug_buff); |
374 sess->logininfo.errorurl); | 377 sess->logininfo.errorurl); |
375 debug_print(debug_buff); | 378 debug_print(debug_buff); |
376 #ifdef USE_APPLET | 379 #ifdef USE_APPLET |
377 set_user_state(offline); | 380 set_user_state(offline); |
378 #endif | 381 #endif |
379 gdk_input_remove(gc->inpa); | |
380 hide_login_progress(gc, _("Authentication Failed")); | |
381 signoff(gc); | 382 signoff(gc); |
382 return 0; | 383 return 0; |
383 } | 384 } |
384 | 385 |
385 | 386 |
1393 ret->add_buddy = oscar_add_buddy; | 1394 ret->add_buddy = oscar_add_buddy; |
1394 ret->add_buddies = oscar_add_buddies; | 1395 ret->add_buddies = oscar_add_buddies; |
1395 ret->remove_buddy = oscar_remove_buddy; | 1396 ret->remove_buddy = oscar_remove_buddy; |
1396 ret->add_permit = NULL; /* Oscar's permit/deny stuff is messed up */ | 1397 ret->add_permit = NULL; /* Oscar's permit/deny stuff is messed up */ |
1397 ret->add_deny = NULL; /* at least, i can't figure it out :-P */ | 1398 ret->add_deny = NULL; /* at least, i can't figure it out :-P */ |
1399 ret->rem_permit = NULL; | |
1400 ret->rem_deny = NULL; | |
1401 ret->set_permit_deny = NULL; | |
1398 ret->warn = oscar_warn; | 1402 ret->warn = oscar_warn; |
1399 ret->accept_chat = NULL; /* oscar doesn't have accept, it just joins */ | 1403 ret->accept_chat = NULL; /* oscar doesn't have accept, it just joins */ |
1400 ret->join_chat = oscar_join_chat; | 1404 ret->join_chat = oscar_join_chat; |
1401 ret->chat_invite = oscar_chat_invite; | 1405 ret->chat_invite = oscar_chat_invite; |
1402 ret->chat_leave = oscar_chat_leave; | 1406 ret->chat_leave = oscar_chat_leave; |