From 66b2465f1d77bc85f3e645ad3e543d8288bd95cb Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Sun, 25 Aug 2019 12:36:01 +0800 Subject: [PATCH] Update --- libs/data.py | 2 -- libs/yuuki.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/data.py b/libs/data.py index 5c8c40d..9acae71 100644 --- a/libs/data.py +++ b/libs/data.py @@ -125,8 +125,6 @@ class Yuuki_Data: def getLimit(self, Type): LimitInfo = self.getData("LimitInfo") - if len(LimitInfo) != 2: - LimitInfo = self.LimitType if Type == "Kick": Limit = {} for Mode in LimitInfo["KickLimit"]: diff --git a/libs/yuuki.py b/libs/yuuki.py index 8e22a66..d70ee68 100644 --- a/libs/yuuki.py +++ b/libs/yuuki.py @@ -169,6 +169,8 @@ class Yuuki: return Accounts[count] def limitReset(self, reconnect=False): + if len(self.data.getData("LimitInfo")) != 2: + self.data.updateData(self.data.getData("LimitInfo"), self.data.LimitType, self.KickLimit) for userId in [self.MyMID] + self.Connect.helper_ids: if reconnect: if userId not in self.data.getLimit("Kick"):