Fixed Autoidentify (note that it's set on a per-handle basis)

This commit is contained in:
karxi 2016-12-12 15:11:50 -05:00
parent 7fe3c417df
commit 0d4edc4e57

View file

@ -475,7 +475,7 @@ class userProfile(object):
def saveNickServPass(self):
# remove profiles with no passwords
for h,t in self.passwd.items():
if "auto" not in t or "pw" not in t or t["pw"] == "":
if "auto" not in t and ("pw" not in t or t["pw"] == ""):
del self.passwd[h]
try:
jsonoutput = json.dumps(self.passwd, indent=4)