This commit is contained in:
parent
e1a7461369
commit
be7202d5a5
1 changed files with 2 additions and 2 deletions
4
cc/give
4
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]
|
||||
|
|
Loading…
Reference in a new issue