From c32b33e40a8c2ddf732b53c8e93a82fd90f351cd Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Wed, 28 Aug 2019 10:02:57 +0800 Subject: [PATCH] v6.5.0-alpha_RC4 --- libs/yuuki.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/yuuki.py b/libs/yuuki.py index f145e76..d92a309 100644 --- a/libs/yuuki.py +++ b/libs/yuuki.py @@ -582,7 +582,8 @@ class Yuuki: self.data.updateLog("KickEvent", (self.data.getTime(), GroupInfo.name, GroupID, Kicker, Action, Another, ncMessage.type*10+3)) self.data.updateData(self.data.getData("BlackList"), True, Action) # Log - self.data.updateLog("BlackList", (self.data.getTime(), Action, GroupID)) + if Action not in self.data.getData("BlackList"): + self.data.updateLog("BlackList", (self.data.getTime(), Action, GroupID)) self.sendText(Action, _("You had been blocked by our database.")) elif Security_Access: self.sendText(GroupID, _("DO NOT KICK, thank you ^^")) @@ -630,7 +631,7 @@ class Yuuki: print("System Exit.") self.exit() except KeyboardInterrupt: - print("Admin Exit.") + print("\nAdmin Exit.") self.exit() except EOFError: pass