Fix pingif preferences not being properly saved

This commit is contained in:
Vgr E. Barry 2017-04-22 07:45:59 -04:00
parent 16d541b1f1
commit 3f9f06613a

View File

@ -438,7 +438,7 @@ class User(IRCContext):
else: else:
if not var.DISABLE_ACCOUNTS and temp.account: if not var.DISABLE_ACCOUNTS and temp.account:
var.PING_IF_PREFS[temp.account] = value var.PING_IF_PREFS_ACCS[temp.account] = value
db.set_pingif(value, temp.account, None) db.set_pingif(value, temp.account, None)
with var.WARNING_LOCK: with var.WARNING_LOCK:
if value not in var.PING_IF_NUMS_ACCS: if value not in var.PING_IF_NUMS_ACCS: