prevent a TB

This commit is contained in:
Yann Leboulanger 2006-03-27 00:16:24 +00:00
parent c0534e9515
commit 05793cc27c
1 changed files with 1 additions and 1 deletions

View File

@ -1433,7 +1433,7 @@ class ChatControl(ChatControlBase):
is_pm = False
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
control = gajim.interface.msg_win_mgr.get_control(room_jid, self.account)
if control.type_id == message_control.TYPE_GC:
if control and control.type_id == message_control.TYPE_GC:
is_pm = True
events_to_keep = []
for event in l: