Douglas William Thrift 14 years ago
parent
commit
cbb700be0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      locationbot.py

+ 1 - 1
locationbot.py

@@ -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':