prevent a TB. fixes #2687

This commit is contained in:
Yann Leboulanger 2006-11-21 20:55:56 +00:00
parent 43c2f2f0ab
commit 953a9c1086
1 changed files with 4 additions and 1 deletions

View File

@ -885,8 +885,11 @@ class Interface:
show = array[1] show = array[1]
status = array[2] status = array[2]
# Get the window and control for the updated status, this may be a PrivateChatControl # Get the window and control for the updated status, this may be a
# PrivateChatControl
control = self.msg_win_mgr.get_control(room_jid, account) control = self.msg_win_mgr.get_control(room_jid, account)
if control.type_id != message_control.TYPE_GC:
return
if control: if control:
control.chg_contact_status(nick, show, status, array[4], array[5], control.chg_contact_status(nick, show, status, array[4], array[5],
array[6], array[7], array[8], array[9], array[10]) array[6], array[7], array[8], array[9], array[10])