print error in chat window even if print_status_in_chat is False. See #1802

This commit is contained in:
Yann Leboulanger 2006-04-10 13:23:56 +00:00
parent 87eae99e1a
commit 87bb1c5551
1 changed files with 4 additions and 1 deletions

View File

@ -1016,6 +1016,9 @@ class ChatControl(ChatControlBase):
if frm == 'status': if frm == 'status':
kind = 'status' kind = 'status'
name = '' name = ''
elif frm == 'info':
kind = 'info'
name = ''
else: else:
ec = gajim.encrypted_chats[self.account] ec = gajim.encrypted_chats[self.account]
if encrypted and jid not in ec: if encrypted and jid not in ec:
@ -1408,7 +1411,7 @@ class ChatControl(ChatControlBase):
data = event[1] data = event[1]
kind = data[2] kind = data[2]
if kind == 'error': if kind == 'error':
kind = 'status' kind = 'info'
else: else:
kind = 'print_queue' kind = 'print_queue'
self.print_conversation(data[0], kind, tim = data[3], self.print_conversation(data[0], kind, tim = data[3],