diff --git a/src/gui_interface.py b/src/gui_interface.py index abfbca9fc..ab7896154 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -619,9 +619,14 @@ class Interface: account = obj.conn.name gc_control = self.msg_win_mgr.get_gc_control(obj.room_jid, account) if gc_control: - gc_control.print_conversation( - _('%(jid)s declined the invitation: %(reason)s') % { - 'jid': obj.jid_from, 'reason': obj.reason}, graphics=False) + if obj.reason: + gc_control.print_conversation( + _('%(jid)s declined the invitation: %(reason)s') % { + 'jid': obj.jid_from, 'reason': obj.reason}, graphics=False) + else: + gc_control.print_conversation( + _('%(jid)s declined the invitation') % { + 'jid': obj.jid_from}, graphics=False) def handle_event_gc_invitation(self, obj): #('GC_INVITATION', (room_jid, jid_from, reason, password, is_continued))