Mercurial > pidgin.yaz
comparison libpurple/prpl.c @ 20588:e23a1585d822
Clear out the unsaved password if we're already disconnected and we switch to offline status. Fixes #3218.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 21 Sep 2007 01:49:27 +0000 |
parents | 44b4e8bd759b |
children | 495f2f1de998 |
comparison
equal
deleted
inserted
replaced
20587:45b524709475 | 20588:e23a1585d822 |
---|---|
224 | 224 |
225 if (!purple_status_is_online(new_status)) | 225 if (!purple_status_is_online(new_status)) |
226 { | 226 { |
227 if (!purple_account_is_disconnected(account)) | 227 if (!purple_account_is_disconnected(account)) |
228 purple_account_disconnect(account); | 228 purple_account_disconnect(account); |
229 /* Clear out the unsaved password if we're already disconnected and we switch to offline status */ | |
230 else if (!purple_account_get_remember_password(account)) | |
231 purple_account_set_password(account, NULL); | |
229 return; | 232 return; |
230 } | 233 } |
231 | 234 |
232 if (purple_account_is_connecting(account)) | 235 if (purple_account_is_connecting(account)) |
233 /* | 236 /* |