This commit is contained in:
SuperSonic 2019-08-25 12:36:01 +08:00
parent 7a10931b49
commit 66b2465f1d
2 changed files with 2 additions and 2 deletions

View file

@ -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"]:

View file

@ -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"):