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

This commit is contained in:
Nova Cat 2025-01-22 20:23:57 -08:00
parent 2c43516dc4
commit 9dad9ea04d

View file

@ -31,4 +31,9 @@ class broker:
hashed = self.fnet.encrypt(bytes(password, "UTF-8")).decode()
db = self.conn.cursor()
db.execute("INSERT INTO nickserv values(?, 'iw', ?, ?);", [nick, hashed, email])
self.conn.commit()
self.conn.commit()
def nickserv_isexist(self, nick):
db = self.conn.cursor()
db.execute("SELECT * FROM nickserv WHERE user=?;", [nick])
e = db.fetchall()
return e != []