[geobert] fix having None as chatstate after recv single message

This commit is contained in:
Nikos Kouremenos 2006-03-10 10:53:30 +00:00
parent 3355cf4ea3
commit 98d03e2855
1 changed files with 2 additions and 0 deletions

View File

@ -915,6 +915,8 @@ class ChatControl(ChatControlBase):
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
else: else:
chatstate = '' chatstate = ''
elif chatstate is None:
chatstate = helpers.get_uf_chatstate(cs)
label_text = \ label_text = \
'<span %s>%s</span>%s %s' % \ '<span %s>%s</span>%s %s' % \
(font_attrs, name, acct_info, chatstate) (font_attrs, name, acct_info, chatstate)