From 5fa7ebc06b5a49150d75755347a06d687ed63f23 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 20:59:13 -0800 Subject: [PATCH] Update modules/sqlite_local.py --- modules/sqlite_local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/sqlite_local.py b/modules/sqlite_local.py index af81785..9bc62d3 100644 --- a/modules/sqlite_local.py +++ b/modules/sqlite_local.py @@ -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))""") def nickserv_identify(self, nick, password:str): 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]) e = db.fetchall() - db.execute("SELECT * FROM groups WHERE ") if e == []: return False else: