From 43bd7d8fd716298598208860ff605de4c4ea627d Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 21 Jan 2025 21:04:45 -0800 Subject: [PATCH] Update modules/sqlite_local.py --- modules/sqlite_local.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/sqlite_local.py b/modules/sqlite_local.py index ae10a49..ac03d6c 100644 --- a/modules/sqlite_local.py +++ b/modules/sqlite_local.py @@ -23,13 +23,12 @@ class broker: return False else: try: - open("temp", "w").write(self.fnet.decrypt(bytes(e[0][2], "UTF-8")).decode()) return e[0] if self.fnet.decrypt(bytes(e[0][2], "UTF-8")).decode() == password else False except: - open("temp", "w").write(traceback.format_exc()) print(traceback.format_exc()) return False def nickserv_register(self, nick, password, email): hashed = self.fnet.encrypt(bytes(password, "UTF-8")).decode() db = self.conn.cursor() - db.execute("INSERT INTO nickserv values(?, 'iw', ?, ?, ?);", [nick, hashed, f"user/{nick}", email]) \ No newline at end of file + db.execute("INSERT INTO nickserv values(?, 'iw', ?, ?, ?);", [nick, hashed, f"user/{nick}", email]) + self.conn.commit() \ No newline at end of file