diff --git a/modules/ban_engine.py b/modules/ban_engine.py index 4789898..aa68b64 100644 --- a/modules/ban_engine.py +++ b/modules/ban_engine.py @@ -37,6 +37,6 @@ class IRCatModule: raise Exception("Banned: " + " ".join(i.split(" ")[1:])) def ban(self, target_mask, reason="The ban() hammer has spoken!"): if self.useSQLengine: - cur = self.SQLengine.conn.cursor() + self.SQLengine.ban(target_mask, reason) else: open(self.ban_provider, "a").write(f"\n{target_mask} {reason}") \ No newline at end of file