Fix save calls

This commit is contained in:
Mark Veidemanis 2018-01-22 08:01:23 +00:00
parent 9119a7b511
commit b1020589e2
1 changed files with 5 additions and 5 deletions

View File

@ -467,14 +467,14 @@ class Helper(object):
if i in keyword or keyword in i:
return "ISIN"
keyconf["Keywords"].append(keyword)
self.save("keyconf")()
self.save("keyconf")
return True
def delKeyword(self, keyword):
if not keyword in keyconf["Keywords"]:
return "NOKEY"
keyconf["Keywords"].remove(keyword)
self.save("keyconf")()
self.save("keyconf")
return True
def parseCommand(self, addr, authed, data):
@ -755,7 +755,7 @@ class Helper(object):
keyconf["KeywordsExcept"][spl[2]] = []
keyconf["KeywordsExcept"][spl[2]].append(spl[3])
self.save("keyconf")()
self.save("keyconf")
success("Successfully added exception %s for keyword %s" % (spl[3], spl[2]))
return
elif spl[1] == "master":
@ -779,7 +779,7 @@ class Helper(object):
keyconf["KeywordsExcept"][spl[2]].remove(spl[3])
if keyconf["KeywordsExcept"][spl[2]] == []:
del keyconf["KeywordsExcept"][spl[2]]
self.save("keyconf")()
self.save("keyconf")
success("Successfully removed exception %s for keyword %s" % (spl[3], spl[2]))
return
else:
@ -791,7 +791,7 @@ class Helper(object):
failure("No such exception: %s" % spl[2])
return
del keyconf["KeywordsExcept"][spl[2]]
self.save("keyconf")()
self.save("keyconf")
success("Successfully removed exception list of %s" % spl[2])
return
elif spl[1] == "monitor":