Author: asterix Date: 2007-09-05 20:26:42 +0200 (Wed, 05 Sep 2007) New Revision: 8736
Modified: branches/gajim_0.11.1/src/groupchat_control.py Log: don't check if there is a @ when we invite a JID.
Modified: branches/gajim_0.11.1/src/groupchat_control.py =================================================================== --- branches/gajim_0.11.1/src/groupchat_control.py 2007-09-05 18:23:16 UTC (rev 8735) +++ branches/gajim_0.11.1/src/groupchat_control.py 2007-09-05 18:26:42 UTC (rev 8736) @@ -1168,19 +1168,13 @@ if len(message_array): message_array = message_array[0].split() invitee = message_array.pop(0) - if invitee.find('@') >= 0: - reason = ' '.join(message_array) - gajim.connections[self.account].send_invite(self.room_jid, - invitee, reason) - s = _('Invited %(contact_jid)s to %(room_jid)s.') % { - 'contact_jid': invitee, - 'room_jid': self.room_jid} - self.print_conversation(s, 'info') - self.clear(self.msg_textview) - else: - #%s is something the user wrote but it is not a jid so we inform - s = _('%s does not appear to be a valid JID') % invitee - self.print_conversation(s, 'info') + reason = ' '.join(message_array) + gajim.connections[self.account].send_invite(self.room_jid, invitee, reason) + s = _('Invited %(contact_jid)s to %(room_jid)s.') % { + 'contact_jid': invitee, + 'room_jid': self.room_jid} + self.print_conversation(s, 'info') + self.clear(self.msg_textview) else: self.get_command_help(command) return True