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