prevent TB

This commit is contained in:
Yann Leboulanger 2006-11-21 21:30:15 +00:00
parent 568b1a7193
commit 4236845608
1 changed files with 1 additions and 1 deletions

View File

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