From dd55845af76f57db2cb1bab87ad5ed86b65c9154 Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Tue, 26 Mar 2019 23:13:45 +0530 Subject: 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 --- poezio/core/core.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'poezio/core/core.py') 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 @@ -1758,6 +1758,13 @@ class Core: "currently using in this room (instead of default_nick).", 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, @@ -1765,7 +1772,7 @@ class Core: 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, -- cgit v1.2.3