should fix #645 (and should help to display profile name in qhavesex too)

Signed-off-by: setooo <setog@interzone>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
Laurent George 2011-05-30 21:59:20 +02:00 committed by Romain Bignon
commit 27d659376e

View file

@ -265,7 +265,8 @@ class ProfilePage(PageBase):
if (div.hasAttribute('style') and
div.getAttribute('style') == "color:#ffffff;font-size:32px;font-weight:bold;letter-spacing:-2px" and
hasattr(div.firstChild, 'data')):
self.name = div.firstChild.data
if len(div.childNodes) > 1:
self.name = div.childNodes[1].data
if (div.hasAttribute('style') and
div.getAttribute('style') == "font-size:12px;font-weight:bold" and
hasattr(div.firstChild, 'data')):