- elif type == prefs.PURPLE_PREF_BOOLEAN:
- bool_value = accountopt.c_purple_account_option_get_default_bool(option)
- if self.c_account != NULL:
- bool_value = account.c_purple_account_get_bool(self.c_account, setting, bool_value)
- if str(<char *> setting) == "old_ssl":
- account.c_purple_account_set_bool(self.c_account, setting, True)
+ c_account = account.c_purple_accounts_find(acc[0], acc[1])
+ if c_account:
+ return account.c_purple_account_get_password(c_account)
+ else:
+ return None