mirror of
https://github.com/hyper-neptune/yuuki.git
synced 2024-12-26 23:00:50 +08:00
Update
This commit is contained in:
parent
7a10931b49
commit
66b2465f1d
2 changed files with 2 additions and 2 deletions
|
@ -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"]:
|
||||
|
|
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue