Mercurial > pidgin
comparison libpurple/protocols/qq/login_logout.c @ 21358:ba41f2a60253
Rename:
* PurpleDisconnectReason to PurpleConnectionError;
* elements of that enum from PURPLE_REASON_* to PURPLE_CONNECTION_ERROR_*;
* purple_connection_reason_is_fatal to purple_connection_error_is_fatal.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 14 Oct 2007 21:08:42 +0000 |
parents | efa448405f3d |
children | 0b11bc87b9a1 |
comparison
equal
deleted
inserted
replaced
21357:5a3242b676ad | 21358:ba41f2a60253 |
---|---|
403 hex_dump = hex_dump_to_str(buf, buf_len); | 403 hex_dump = hex_dump_to_str(buf, buf_len); |
404 purple_debug(PURPLE_DEBUG_WARNING, "QQ", | 404 purple_debug(PURPLE_DEBUG_WARNING, "QQ", |
405 ">>> %d bytes -> [default] decrypt and dump\n%s", | 405 ">>> %d bytes -> [default] decrypt and dump\n%s", |
406 buf_len, hex_dump); | 406 buf_len, hex_dump); |
407 try_dump_as_gbk(buf, buf_len); | 407 try_dump_as_gbk(buf, buf_len); |
408 purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR, _("Error requesting login token")); | 408 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Error requesting login token")); |
409 } | 409 } |
410 g_free(hex_dump); | 410 g_free(hex_dump); |
411 } | 411 } |
412 | 412 |
413 /* send logout packets to QQ server */ | 413 /* send logout packets to QQ server */ |
480 switch (ret) { | 480 switch (ret) { |
481 case QQ_LOGIN_REPLY_PWD_ERROR: | 481 case QQ_LOGIN_REPLY_PWD_ERROR: |
482 if (!purple_account_get_remember_password(gc->account)) | 482 if (!purple_account_get_remember_password(gc->account)) |
483 purple_account_set_password(gc->account, NULL); | 483 purple_account_set_password(gc->account, NULL); |
484 purple_connection_error_reason(gc, | 484 purple_connection_error_reason(gc, |
485 PURPLE_REASON_AUTHENTICATION_FAILED, _("Incorrect password.")); | 485 PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, _("Incorrect password.")); |
486 break; | 486 break; |
487 case QQ_LOGIN_REPLY_MISC_ERROR: | 487 case QQ_LOGIN_REPLY_MISC_ERROR: |
488 purple_connection_error_reason(gc, | 488 purple_connection_error_reason(gc, |
489 PURPLE_REASON_NETWORK_ERROR, _("Unable to login, check debug log")); | 489 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to login, check debug log")); |
490 break; | 490 break; |
491 case QQ_LOGIN_REPLY_OK: | 491 case QQ_LOGIN_REPLY_OK: |
492 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Login replys OK, everything is fine\n"); | 492 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Login replys OK, everything is fine\n"); |
493 break; | 493 break; |
494 case QQ_LOGIN_REPLY_REDIRECT: | 494 case QQ_LOGIN_REPLY_REDIRECT: |