summaryrefslogtreecommitdiff
path: root/poezio/core/completions.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-05-09 23:32:26 +0200
committermathieui <mathieui@mathieui.net>2020-05-10 00:11:23 +0200
commite03fb0b3ce41de208e4b52ee1224a080cfc5c6f5 (patch)
tree0fad35396fe5dfb3087d0659083c5d329ffd2779 /poezio/core/completions.py
parenteda88a59a6b56c70fcbc9e2f5ef705a17d74c381 (diff)
downloadpoezio-e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5.tar.gz
poezio-e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5.tar.bz2
poezio-e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5.tar.xz
poezio-e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5.zip
Fix completion and function names for /accept and /add
Diffstat (limited to 'poezio/core/completions.py')
-rw-r--r--poezio/core/completions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/poezio/core/completions.py b/poezio/core/completions.py
index ee3e95bf..544a7889 100644
--- a/poezio/core/completions.py
+++ b/poezio/core/completions.py
@@ -44,6 +44,14 @@ class CompletionCore:
' ',
quotify=False)
+ def roster_barejids(self, the_input):
+ """Complete roster bare jids"""
+ jids = sorted(
+ str(contact.bare_jid) for contact in roster.contacts.values()
+ if contact.pending_in
+ )
+ return Completion(the_input.new_completion, jids, 1, '', quotify=False)
+
def presence(self, the_input):
"""
Completion of /presence