From 6aea4d06313f6dadfea9617aa4de6a1639785829 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 6 Nov 2010 13:35:50 +0100 Subject: account cache fix --- module/plugins/Account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/Account.py b/module/plugins/Account.py index c630a47df..086665493 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -63,6 +63,7 @@ class Account(): self.accounts = accounts for user, data in self.accounts.iteritems(): self._login(user, data) + self.infos[user] = {} def updateAccounts(self, user, password=None, options={}): if self.accounts.has_key(user): @@ -85,7 +86,7 @@ class Account(): def getAccountInfo(self, name, force=False): """ return dict with infos, do not overwrite this method! """ data = Account.loadAccountInfo(self, name) - if not self.infos.has_key(name) or force: + if force: self.core.log.debug("Get %s Account Info for %s" % (self.__name__, name)) req = self.getAccountRequest(name) -- cgit v1.2.3