summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-11 03:41:06 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-11 03:41:06 +0100
commit6bb94cdf0b88671b2ac12eb67f70555da565f238 (patch)
tree6fb43bdcc79ba075c4d63963d7517761a4f4933f /src/tabs.py
parentf7102ae33d0ab2cec6b414b61f39c4c2d9bae1b0 (diff)
downloadpoezio-6bb94cdf0b88671b2ac12eb67f70555da565f238.tar.gz
poezio-6bb94cdf0b88671b2ac12eb67f70555da565f238.tar.bz2
poezio-6bb94cdf0b88671b2ac12eb67f70555da565f238.tar.xz
poezio-6bb94cdf0b88671b2ac12eb67f70555da565f238.zip
Displays the subscription and Ask states in the roster
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 04227573..c5c7d791 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -757,6 +757,7 @@ class RosterInfoTab(Tab):
self.key_func["o"] = self.toggle_offline_show
self.key_func["s"] = self.start_search
self.key_func["S"] = self.start_search_slow
+ self.commands['deny'] = (self.command_deny, _("Usage: /deny [jid]\nDeny: Use this command to remove and deny your presence to the provided JID (or the selected contact in your roster), who is asking you to be in his/here roster"), self.completion_deny)
self.resize()
def resize(self):
@@ -776,6 +777,11 @@ class RosterInfoTab(Tab):
not self.input.help_message:
self.complete_commands(self.input)
+ def command_deny(self, args):
+ """
+ Denies a JID from our roster
+ """
+
def refresh(self, tabs, informations, roster):
if not self.visible:
return