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()
|
database = conn.cursor()
|
||||||
def getperms(mask: str):
|
def getperms(mask: str):
|
||||||
try:
|
try:
|
||||||
self.database.execute(f"SELECT * FROM users;")
|
database.execute(f"SELECT * FROM users;")
|
||||||
output = self.database.fetchall()
|
output = database.fetchall()
|
||||||
for i in output:
|
for i in output:
|
||||||
if re.match(i[0].replace("*", ".+"), mask):
|
if re.match(i[0].replace("*", ".+"), mask):
|
||||||
return i[1]
|
return i[1]
|
||||||
|
|
Loading…
Reference in a new issue