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]