mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-09-07 18:56:01 -05:00
fix nas_logins entries not being reused when possible
This commit is contained in:
@@ -393,11 +393,11 @@ class GamespyDatabase(object):
|
||||
for r in c.execute(q, [authtoken]):
|
||||
authtoken = "NDS" + utils.generate_random_str(size)
|
||||
|
||||
q = "SELECT * FROM nas_logins WHERE userid LIKE ?"
|
||||
q = "SELECT * FROM nas_logins WHERE userid = ?"
|
||||
q2 = q.replace("?", "%s") % (userid)
|
||||
logger.log(-1, q2)
|
||||
|
||||
c.execute(q, [authtoken])
|
||||
c.execute(q, [userid])
|
||||
r = self.get_dict(c.fetchone())
|
||||
|
||||
if r == None: # no row, add it
|
||||
|
||||
Reference in New Issue
Block a user