Update cc/give
All checks were successful
Check syntax / check (push) Successful in 7s

This commit is contained in:
Nova Cat 2024-12-28 18:44:08 -08:00
parent e1a7461369
commit be7202d5a5

View file

@ -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]