be sure to get groupchat_control in MSGERR handler.

This commit is contained in:
Yann Leboulanger 2006-10-03 15:02:59 +00:00
parent 725325eb7e
commit 2617ae7092
1 changed files with 2 additions and 0 deletions

View File

@ -629,6 +629,8 @@ class Interface:
jids = full_jid_with_resource.split('/', 1) jids = full_jid_with_resource.split('/', 1)
jid = jids[0] jid = jids[0]
gc_control = self.msg_win_mgr.get_control(jid, account) gc_control = self.msg_win_mgr.get_control(jid, account)
if gc_control.type_id != message_control.TYPE_GC:
gc_control = None
if gc_control: if gc_control:
if len(jids) > 1: # it's a pm if len(jids) > 1: # it's a pm
nick = jids[1] nick = jids[1]