Fix a crash on completion_affiliation
This commit is contained in:
parent
63805e59f6
commit
c04d194ad0
1 changed files with 4 additions and 2 deletions
|
@ -668,8 +668,10 @@ class MucTab(ChatTab):
|
|||
n += 1
|
||||
if n == 2:
|
||||
userlist = [user.nick for user in self.users]
|
||||
if self.own_nick in userlist:
|
||||
userlist.remove(self.own_nick)
|
||||
jidlist = [user.jid.bare for user in self.users]
|
||||
if self.core.xmpp.boundjid.bare in jidlist:
|
||||
jidlist.remove(self.core.xmpp.boundjid.bare)
|
||||
userlist.extend(jidlist)
|
||||
return the_input.auto_completion(userlist, '')
|
||||
|
|
Loading…
Reference in a new issue