[Maxime Chéramy] /join room works. Gajim uses actual's MUC server.
This commit is contained in:
parent
7827e3cb9a
commit
0020c95c02
|
@ -1290,9 +1290,10 @@ class GroupchatControl(ChatControlBase):
|
||||||
# example: /join room@conference.example.com/nick
|
# example: /join room@conference.example.com/nick
|
||||||
if len(message_array):
|
if len(message_array):
|
||||||
room_jid = message_array[0]
|
room_jid = message_array[0]
|
||||||
|
if room_jid.find('@') < 0:
|
||||||
|
room_jid = room_jid + '@' + gajim.get_server_from_jid(self.room_jid)
|
||||||
else:
|
else:
|
||||||
room_jid = '@' + gajim.get_server_from_jid(self.room_jid)
|
room_jid = '@' + gajim.get_server_from_jid(self.room_jid)
|
||||||
if room_jid.find('@') >= 0:
|
|
||||||
if room_jid.find('/') >= 0:
|
if room_jid.find('/') >= 0:
|
||||||
room_jid, nick = room_jid.split('/', 1)
|
room_jid, nick = room_jid.split('/', 1)
|
||||||
else:
|
else:
|
||||||
|
@ -1309,10 +1310,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
except GajimGeneralException:
|
except GajimGeneralException:
|
||||||
pass
|
pass
|
||||||
self.clear(self.msg_textview)
|
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') % message_array[0]
|
|
||||||
self.print_conversation(s, 'info')
|
|
||||||
return True
|
return True
|
||||||
elif command == 'leave' or command == 'part' or command == 'close':
|
elif command == 'leave' or command == 'part' or command == 'close':
|
||||||
# Leave the room and close the tab or window
|
# Leave the room and close the tab or window
|
||||||
|
|
Loading…
Reference in New Issue