From b1020589e2e1e13f4d8aa10e1c12464755928d88 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 22 Jan 2018 08:01:23 +0000 Subject: [PATCH] Fix save calls --- threshold | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/threshold b/threshold index 98e9f1a..162e107 100755 --- a/threshold +++ b/threshold @@ -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":