Don't allow to change nick to actual nick, it breaks presence

This commit is contained in:
Jean-Marie Traissard 2006-06-05 09:16:44 +00:00
parent 6dcb8f7f20
commit eba425d73a
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ class GroupchatControl(ChatControlBase):
if command == 'nick':
# example: /nick foo
if len(message_array):
if len(message_array) and message_array[0] != self.nick:
nick = message_array[0]
gajim.connections[self.account].change_gc_nick(self.room_jid, nick)
self.clear(self.msg_textview)