Allow plugins to remove accounts

This commit is contained in:
Patrick Ulbrich
2014-12-07 21:01:50 +01:00
parent d9a5291817
commit 7a3843d932

View File

@@ -161,7 +161,7 @@ class MailnagDaemon:
lst = self._accounts[:]
for f in self._hookreg.get_hook_funcs(HookTypes.ACCOUNTS_LOADED):
try_call( lambda: f(lst) )
self._accounts += [a for a in lst if a not in self._accounts]
self._accounts[:] = lst
# Immediate check, check *all* accounts
try: