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

@ -32,3 +32,8 @@ class broker:
db = self.conn.cursor() db = self.conn.cursor()
db.execute("INSERT INTO nickserv values(?, 'iw', ?, ?);", [nick, hashed, email]) 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 != []