summaryrefslogtreecommitdiff
path: root/poezio/core/core.py
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-03-26 23:13:45 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-03-30 17:25:42 +0530
commitdd55845af76f57db2cb1bab87ad5ed86b65c9154 (patch)
tree5b346022a8bf10121b4f369246bc74ce8b1b24e6 /poezio/core/core.py
parentb5cca8687d16afafbbfcbd7f74a3c8aa8ca35108 (diff)
downloadpoezio-dd55845af76f57db2cb1bab87ad5ed86b65c9154.tar.gz
poezio-dd55845af76f57db2cb1bab87ad5ed86b65c9154.tar.bz2
poezio-dd55845af76f57db2cb1bab87ad5ed86b65c9154.tar.xz
poezio-dd55845af76f57db2cb1bab87ad5ed86b65c9154.zip
Corrects the functionality of /add and /accept commands in all the tabs. Fixes #3395
Corrects the functionality of /add command in all tabs. Fixes #3395 Removed trailing whitespaces Corrected general way of writing code. Corrects the functionality of /add and /accept commands in all tabs. Fixes #3395
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r--poezio/core/core.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 51c304fa..b491eb00 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -1759,13 +1759,20 @@ class Core:
shortdesc="Bookmark a room online.",
completion=self.completion.bookmark)
self.register_command(
+ 'accept',
+ self.command.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.',)
+ self.register_command(
'add',
self.command.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'
' see your presence.',
- shortdesc='Add a user to your roster.')
+ shortdesc='Add a user to your roster.')
self.register_command(
'reconnect',
self.command.command_reconnect,