parent
d7b8e118eb
commit
1af2710dfa
1 changed files with 1 additions and 1 deletions
|
@ -37,6 +37,6 @@ class IRCatModule:
|
||||||
raise Exception("Banned: " + " ".join(i.split(" ")[1:]))
|
raise Exception("Banned: " + " ".join(i.split(" ")[1:]))
|
||||||
def ban(self, target_mask, reason="The ban() hammer has spoken!"):
|
def ban(self, target_mask, reason="The ban() hammer has spoken!"):
|
||||||
if self.useSQLengine:
|
if self.useSQLengine:
|
||||||
cur = self.SQLengine.conn.cursor()
|
self.SQLengine.ban(target_mask, reason)
|
||||||
else:
|
else:
|
||||||
open(self.ban_provider, "a").write(f"\n{target_mask} {reason}")
|
open(self.ban_provider, "a").write(f"\n{target_mask} {reason}")
|
Loading…
Add table
Reference in a new issue