summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-27 22:34:12 +0200
committermathieui <mathieui@mathieui.net>2012-04-27 22:34:12 +0200
commit2957cded911a75bfae9e6818d3670efb1570e988 (patch)
tree4935cda5ec96c538fbf6302fbae2f303ffe893c9 /src/core.py
parent6743bb5d9498ce6a9bc96be66b0527743942b459 (diff)
downloadpoezio-2957cded911a75bfae9e6818d3670efb1570e988.tar.gz
poezio-2957cded911a75bfae9e6818d3670efb1570e988.tar.bz2
poezio-2957cded911a75bfae9e6818d3670efb1570e988.tar.xz
poezio-2957cded911a75bfae9e6818d3670efb1570e988.zip
Fix the completion for all commands manipulating the roster
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py
index 23a82fe6..da9ff4da 100644
--- a/src/core.py
+++ b/src/core.py
@@ -468,7 +468,7 @@ class Core(object):
if txt.endswith(' '):
n += 1
if n == 2:
- return the_input.auto_completion([contact.bare_jid for contact in roster.get_contacts()], '')
+ return the_input.auto_completion([jid for jid in roster.jids()], '')
elif n == 3:
rooms = []
for tab in self.tabs:
@@ -683,7 +683,7 @@ class Core(object):
self.information(_("Your JID is %s") % self.xmpp.boundjid.full)
if not self.xmpp.anon:
# request the roster
- self.xmpp.getRoster()
+ self.xmpp.get_roster()
# send initial presence
if config.get('send_initial_presence', 'true').lower() == 'true':
pres = self.xmpp.make_presence()
@@ -1485,7 +1485,7 @@ class Core(object):
if text.endswith(' '):
n += 1
if n == 2:
- return the_input.auto_completion([contact.bare_jid for contact in roster.get_contacts()], '')
+ return the_input.auto_completion([jid for jid in roster.jids()], '')
elif n == 3:
return the_input.auto_completion([status for status in possible_show], '')
@@ -1744,7 +1744,7 @@ class Core(object):
n = len(the_input.get_text().split())
if n > 2 or (n == 2 and the_input.get_text().endswith(' ')):
return
- return the_input.auto_completion([contact.bare_jid for contact in roster.get_contacts()], '')
+ return the_input.auto_completion([jid for jid in roster.jids()], '')
def completion_list(self, the_input):
muc_serv_list = []