Message to join the room with an other nick only if the room is not joined yet

Because that message doesn’t make any sense if you are in the room and you
get a nick conflict from the /nick command.
This commit is contained in:
Florent Le Coz 2013-06-18 20:32:17 +02:00
parent 3015b3b9e5
commit 06d5ecb879

View file

@ -3511,7 +3511,8 @@ class Core(object):
if config.get('alternative_nickname', '') != '':
self.command_join('%s/%s'% (tab.name, tab.own_nick+config.get('alternative_nickname', '')))
else:
tab.add_message(_('You can join the room with an other nick, by typing "/join /other_nick"'), typ=2)
if not tab.joined:
tab.add_message(_('You can join the room with an other nick, by typing "/join /other_nick"'), typ=2)
self.refresh_window()
def outgoing_stanza(self, stanza):