| 1171 | | if invitee.find('@') >= 0: |
| 1172 | | reason = ' '.join(message_array) |
| 1173 | | gajim.connections[self.account].send_invite(self.room_jid, |
| 1174 | | invitee, reason) |
| 1175 | | s = _('Invited %(contact_jid)s to %(room_jid)s.') % { |
| 1176 | | 'contact_jid': invitee, |
| 1177 | | 'room_jid': self.room_jid} |
| 1178 | | self.print_conversation(s, 'info') |
| 1179 | | self.clear(self.msg_textview) |
| 1180 | | else: |
| 1181 | | #%s is something the user wrote but it is not a jid so we inform |
| 1182 | | s = _('%s does not appear to be a valid JID') % invitee |
| 1183 | | self.print_conversation(s, 'info') |
| | 1171 | reason = ' '.join(message_array) |
| | 1172 | gajim.connections[self.account].send_invite(self.room_jid, invitee, reason) |
| | 1173 | s = _('Invited %(contact_jid)s to %(room_jid)s.') % { |
| | 1174 | 'contact_jid': invitee, |
| | 1175 | 'room_jid': self.room_jid} |
| | 1176 | self.print_conversation(s, 'info') |
| | 1177 | self.clear(self.msg_textview) |