Update modules/sqlite_local.py
All checks were successful
/ check (push) Successful in 14s

This commit is contained in:
Nova Cat 2025-01-29 20:59:13 -08:00
parent 9b3a6bd083
commit 5fa7ebc06b

View file

@ -17,9 +17,12 @@ class broker:
db.execute("""CREATE table IF NOT EXISTS chanserv (name varchar(255), modes varchar(255), params varchar(255), owner varchar(255), usermodes varchar(255), optimodes varchar(255))""") db.execute("""CREATE table IF NOT EXISTS chanserv (name varchar(255), modes varchar(255), params varchar(255), owner varchar(255), usermodes varchar(255), optimodes varchar(255))""")
def nickserv_identify(self, nick, password:str): def nickserv_identify(self, nick, password:str):
db = self.conn.cursor() db = self.conn.cursor()
db.execute("SELECT * FROM groups WHERE name=?", [nick])
f = db.fetchall()
if f != []:
nick = f[0][1]
db.execute("SELECT * FROM nickserv WHERE user=?;", [nick]) db.execute("SELECT * FROM nickserv WHERE user=?;", [nick])
e = db.fetchall() e = db.fetchall()
db.execute("SELECT * FROM groups WHERE ")
if e == []: if e == []:
return False return False
else: else: