Changeset 8736 for branches/gajim_0.11.1

Show
Ignore:
Timestamp:
09/05/07 20:26:42 (12 months ago)
Author:
asterix
Message:

don't check if there is a @ when we invite a JID.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/groupchat_control.py

    r8732 r8736  
    11691169                                message_array = message_array[0].split() 
    11701170                                invitee = message_array.pop(0) 
    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) 
    11841178                        else: 
    11851179                                self.get_command_help(command)