Merge branch 'master' into social

* master:
  Adding WP7 as user agent.
This commit is contained in:
Samuel Clay 2011-12-22 18:30:15 -08:00
commit c4d4eecc81

View file

@ -34,6 +34,8 @@ def user(u, msg):
platform = 'FF'
elif 'Opera' in user_agent:
platform = 'Opera'
elif 'WP7' in user_agent:
platform = 'WP7'
premium = '*' if u.is_authenticated() and u.profile.is_premium else ''
username = cipher(u.__unicode__()) if settings.CIPHER_USERNAMES else u
info(' ---> [~FB~SN%-6s~SB] [%s%s] %s' % (platform, username, premium, msg))