Fix wrong account type initialiser

Addresses #14
This commit is contained in:
mailchuck 2015-12-02 11:12:37 +01:00
parent 36e84a9828
commit bcdf608716
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -85,7 +85,7 @@ class AccountColor(AccountMixin):
class BMAccount(object): class BMAccount(object):
def __init__(self, address = None): def __init__(self, address = None):
self.address = address self.address = address
self.type = 'normal' self.type = AccountMixin.NORMAL
if shared.config.has_section(address): if shared.config.has_section(address):
if shared.safeConfigGetBoolean(self.address, 'chan'): if shared.safeConfigGetBoolean(self.address, 'chan'):
self.type = AccountMixin.CHAN self.type = AccountMixin.CHAN