diff options
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index ebf490f3..3db2e9f7 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -668,9 +668,11 @@ class MucTab(ChatTab): n += 1 if n == 2: userlist = [user.nick for user in self.users] - userlist.remove(self.own_nick) + if self.own_nick in userlist: + userlist.remove(self.own_nick) jidlist = [user.jid.bare for user in self.users] - jidlist.remove(self.core.xmpp.boundjid.bare) + if self.core.xmpp.boundjid.bare in jidlist: + jidlist.remove(self.core.xmpp.boundjid.bare) userlist.extend(jidlist) return the_input.auto_completion(userlist, '') elif n == 3: |