summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--player.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.py b/player.py
index 685f8b4..a8b6f6e 100644
--- a/player.py
+++ b/player.py
@@ -840,9 +840,9 @@ def register(args, token):
# If email is an UID mail, clobber it
check=sql.query_email("_%s@spheres.tmw2.org" % (MyUID))
if (check != ""):
- passwd=clobber_email(check, "_%s@spheres.tmw2.org" % (MyUID), mail)
+ passwd=sql.clobber_email(check, "_%s@spheres.tmw2.org" % (MyUID), mail)
stdout("INFO: Set a new email for \"%s\" (%s)" % (check, mail))
- return compress({"userid": userid, "password": passwd})
+ return compress({"userid": MyUID, "password": passwd})
stdout("Now registering account")
# Register it