Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-scripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Authenticators/SMF/1.x/smfauth.py')
-rw-r--r--Authenticators/SMF/1.x/smfauth.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Authenticators/SMF/1.x/smfauth.py b/Authenticators/SMF/1.x/smfauth.py
index 5e387ac..bcadbfa 100644
--- a/Authenticators/SMF/1.x/smfauth.py
+++ b/Authenticators/SMF/1.x/smfauth.py
@@ -551,7 +551,7 @@ def do_main_program():
try:
sql = 'SELECT ID_MEMBER FROM %smembers WHERE LOWER(memberName) = LOWER(%%s)' % cfg.database.prefix
- cur = threadDB.execute(sql, name)
+ cur = threadDB.execute(sql, [name])
except threadDbException:
return FALL_THROUGH
@@ -580,7 +580,7 @@ def do_main_program():
# Fetch the user from the database
try:
sql = 'SELECT memberName FROM %smembers WHERE ID_MEMBER = %%s' % cfg.database.prefix
- cur = threadDB.execute(sql, bbid)
+ cur = threadDB.execute(sql, [bbid])
except threadDbException:
return FALL_THROUGH
@@ -615,7 +615,7 @@ def do_main_program():
bbid = id - cfg.user.id_offset
try:
sql = 'SELECT realName, avatar FROM %smembers WHERE ID_MEMBER = %%s' % cfg.database.prefix
- cur = threadDB.execute(sql, bbid)
+ cur = threadDB.execute(sql, [bbid])
except threadDbException:
return FALL_THROUGH
@@ -630,7 +630,7 @@ def do_main_program():
# Either the user has none or it is in the attachments, check there
try:
sql = 'SELECT ID_ATTACH, file_hash FROM %sattachments WHERE ID_MEMBER = %%s' % cfg.database.prefix
- cur = threadDB.execute(sql, bbid)
+ cur = threadDB.execute(sql, [bbid])
except threadDbException:
return FALL_THROUGH
@@ -705,7 +705,7 @@ def do_main_program():
try:
sql = 'SELECT ID_MEMBER, memberName FROM %smembers WHERE is_activated = 1 AND memberName LIKE %%s' % cfg.database.prefix
- cur = threadDB.execute(sql, filter)
+ cur = threadDB.execute(sql, [filter])
except threadDbException:
return {}