summaryrefslogtreecommitdiff
path: root/poezio/core/completions.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-05-10 00:10:46 +0200
committermathieui <mathieui@mathieui.net>2020-05-10 00:11:23 +0200
commita1c8efdfb2f28976aaa653e5fc1e695b943bb739 (patch)
tree10996f59972b2be47eae9ad4da257961c72f7429 /poezio/core/completions.py
parente03fb0b3ce41de208e4b52ee1224a080cfc5c6f5 (diff)
downloadpoezio-a1c8efdfb2f28976aaa653e5fc1e695b943bb739.tar.gz
poezio-a1c8efdfb2f28976aaa653e5fc1e695b943bb739.tar.bz2
poezio-a1c8efdfb2f28976aaa653e5fc1e695b943bb739.tar.xz
poezio-a1c8efdfb2f28976aaa653e5fc1e695b943bb739.zip
Move /deny and /remove to global scope as well
Diffstat (limited to 'poezio/core/completions.py')
-rw-r--r--poezio/core/completions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/poezio/core/completions.py b/poezio/core/completions.py
index 544a7889..ada8d2b9 100644
--- a/poezio/core/completions.py
+++ b/poezio/core/completions.py
@@ -52,6 +52,11 @@ class CompletionCore:
)
return Completion(the_input.new_completion, jids, 1, '', quotify=False)
+ def remove(self, the_input):
+ """Completion for /remove"""
+ jids = [jid for jid in roster.jids()]
+ return Completion(the_input.auto_completion, jids, '', quotify=False)
+
def presence(self, the_input):
"""
Completion of /presence