Mercurial > pidgin.yaz
comparison libpurple/protocols/simple/simple.c @ 32767:2ec94166be43
On the way to hiding the PurpleConnection struct.
* Added purple_connection_get_flags() and purple_connection_set_flags()
* Use purple_connection_ accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 18:47:48 +0000 |
parents | d2ef8926b960 |
children | 50cd80d3554e |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
1119 break; | 1119 break; |
1120 case 401: | 1120 case 401: |
1121 if(sip->registerstatus != SIMPLE_REGISTER_RETRY) { | 1121 if(sip->registerstatus != SIMPLE_REGISTER_RETRY) { |
1122 purple_debug_info("simple", "REGISTER retries %d\n", sip->registrar.retries); | 1122 purple_debug_info("simple", "REGISTER retries %d\n", sip->registrar.retries); |
1123 if(sip->registrar.retries > SIMPLE_REGISTER_RETRY_MAX) { | 1123 if(sip->registrar.retries > SIMPLE_REGISTER_RETRY_MAX) { |
1124 if (!purple_account_get_remember_password(sip->gc->account)) | 1124 if (!purple_account_get_remember_password(purple_connection_get_account(sip->gc))) |
1125 purple_account_set_password(sip->gc->account, NULL); | 1125 purple_account_set_password(purple_connection_get_account(sip->gc), NULL); |
1126 purple_connection_error(sip->gc, | 1126 purple_connection_error(sip->gc, |
1127 PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, | 1127 PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, |
1128 _("Incorrect password")); | 1128 _("Incorrect password")); |
1129 return TRUE; | 1129 return TRUE; |
1130 } | 1130 } |