summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 00:17:16 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 00:17:16 +0200
commit3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d (patch)
tree65ddba0e50a7542d2b298033ec3c5a690e818fa2 /src/tabs.py
parent31382401500292c27797d21d8e86bc7c2fe48161 (diff)
downloadpoezio-3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d.tar.gz
poezio-3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d.tar.bz2
poezio-3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d.tar.xz
poezio-3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d.zip
Do not split on command_deny as it is unneeded
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 4f95194b..13c642ee 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1763,12 +1763,12 @@ class RosterInfoTab(Tab):
self.core.information_win.rebuild_everything(self.core.information_buffer)
self.refresh()
- def command_deny(self, args):
+ def command_deny(self, arg):
"""
+ /deny [jid]
Denies a JID from our roster
"""
- args = args.split()
- if not args:
+ if not arg:
item = self.roster_win.selected_row
if isinstance(item, Contact) and item.ask == 'asked':
jid = item.bare_jid
@@ -1776,7 +1776,7 @@ class RosterInfoTab(Tab):
self.core.information('No subscription to deny')
return
else:
- jid = JID(args[0]).bare
+ jid = JID(arg).bare
if not jid in [contact.bare_jid for contact in roster.get_contacts()]:
self.core.information('No subscription to deny')
return