diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-10 00:10:46 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-10 00:11:23 +0200 |
commit | a1c8efdfb2f28976aaa653e5fc1e695b943bb739 (patch) | |
tree | 10996f59972b2be47eae9ad4da257961c72f7429 /poezio/core/core.py | |
parent | e03fb0b3ce41de208e4b52ee1224a080cfc5c6f5 (diff) | |
download | poezio-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/core.py')
-rw-r--r-- | poezio/core/core.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index a0976c3c..06d56062 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1785,6 +1785,25 @@ class Core: ' see your presence.', shortdesc='Add a user to your roster.') self.register_command( + 'deny', + self.command.deny, + usage='[jid]', + desc='Deny your presence to the provided JID (or the ' + 'selected contact in your roster), who is asking' + 'you to be in their roster.', + shortdesc='Deny a user your presence.', + completion=self.completion.roster_barejids) + self.register_command( + 'remove', + self.command.remove, + usage='[jid]', + desc='Remove the specified JID from your roster. This ' + 'will unsubscribe you from its presence, cancel ' + 'its subscription to yours, and remove the item ' + 'from your roster.', + shortdesc='Remove a user from your roster.', + completion=self.completion.remove) + self.register_command( 'reconnect', self.command.command_reconnect, usage="[reconnect]", |