This commit is contained in:
parent
2c43516dc4
commit
9dad9ea04d
1 changed files with 6 additions and 1 deletions
|
@ -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 != []
|
Loading…
Add table
Reference in a new issue