Update modules/botnet_protect.py

This commit is contained in:
Nova Cat 2025-01-11 01:03:07 -08:00
parent 5465775042
commit 9d4de13e7c

View file

@ -15,6 +15,7 @@ class IRCatModule:
self.useSQLengine = True self.useSQLengine = True
self.SQLengine = sql self.SQLengine = sql
def ban(self, ip): def ban(self, ip):
del self.memory[ip]
if self.useSQLengine: if self.useSQLengine:
cur = self.SQLengine.conn.cursor() cur = self.SQLengine.conn.cursor()
else: else: