summaryrefslogtreecommitdiff
path: root/poezio/core/core.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/core.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/core.py')
-rw-r--r--poezio/core/core.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 8f25d551..a0976c3c 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -1770,14 +1770,15 @@ class Core:
completion=self.completion.bookmark)
self.register_command(
'accept',
- self.command.command_accept,
+ self.command.accept,
usage='[jid]',
desc='Allow the provided JID (or the selected contact '
'in your roster), to see your presence.',
- shortdesc='Allow a user your presence.',)
+ shortdesc='Allow a user your presence.',
+ completion=self.completion.roster_barejids)
self.register_command(
'add',
- self.command.command_add,
+ self.command.add,
usage='<jid>',
desc='Add the specified JID to your roster, ask them to'
' allow you to see his presence, and allow them to'