From c04d194ad09615832cc47dc3da832fcaaed1761a Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 1 Mar 2012 19:37:09 +0100 Subject: Fix a crash on completion_affiliation --- src/tabs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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: -- cgit v1.2.3