From be7202d5a5f55aa04fff50588778281558dd159c Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 18:44:08 -0800 Subject: [PATCH] Update cc/give --- cc/give | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/give b/cc/give index 05c7c82..ac753f6 100644 --- a/cc/give +++ b/cc/give @@ -5,8 +5,8 @@ conn = sqlite3.connect("/home/sweebotirc/sbirc.db") database = conn.cursor() def getperms(mask: str): try: - self.database.execute(f"SELECT * FROM users;") - output = self.database.fetchall() + database.execute(f"SELECT * FROM users;") + output = database.fetchall() for i in output: if re.match(i[0].replace("*", ".+"), mask): return i[1]