diff options
author | mathieui <mathieui@mathieui.net> | 2012-03-01 19:37:09 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-03-01 19:37:09 +0100 |
commit | c04d194ad09615832cc47dc3da832fcaaed1761a (patch) | |
tree | 69be551ce58704c60673286f7bb0807335ba1401 /src | |
parent | 63805e59f6765917bbc03637362711c2d0157376 (diff) | |
download | poezio-c04d194ad09615832cc47dc3da832fcaaed1761a.tar.gz poezio-c04d194ad09615832cc47dc3da832fcaaed1761a.tar.bz2 poezio-c04d194ad09615832cc47dc3da832fcaaed1761a.tar.xz poezio-c04d194ad09615832cc47dc3da832fcaaed1761a.zip |
Fix a crash on completion_affiliation
Diffstat (limited to 'src')
-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: |