]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Store stripped_nick for pgstats.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 15 Dec 2011 02:35:21 +0000 (21:35 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 15 Dec 2011 02:35:21 +0000 (21:35 -0500)
xonstat/views/submission.py

index d610e42f8fc367df50f4de976a4b33ba31e4fce4..9d82aa163b19bb09be78f0034e68b38a489ef776 100755 (executable)
@@ -357,6 +357,9 @@ def create_player_game_stat(session=None, player=None,
     if pgstat.nick == None:\r
         pgstat.nick = player.nick\r
 \r
+    # whichever nick we ended up with, strip it and store as the stripped_nick\r
+    pgstat.stripped_nick = qfont_decode(pgstat.nick)\r
+\r
     # if the nick we end up with is different from the one in the\r
     # player record, change the nick to reflect the new value\r
     if pgstat.nick != player.nick and player.player_id > 2:\r