@@ -363,7 +363,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
return invalid(value)
try:
- cursor.execute('update locationbot.nick set ' + variable + ' = %s' + (', updated = now()' if variable == 'location' else '') + ' where nick = %s', (value, login))
+ cursor.execute('update locationbot.nick set ' + variable + ' = ' + ('md5(%s)' if variable == 'secret' else '%s') + (', updated = now()' if variable == 'location' else '') + ' where nick = %s', (value, login))
db.commit()
except psycopg2.IntegrityError:
if variable == 'nick':