From 3a1a1dcc6d20f1921d3ea2bb2347ab52c70bea3d Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 18 Apr 2012 00:17:16 +0200 Subject: Do not split on command_deny as it is unneeded --- src/tabs.py | 8 ++++---- 1 file 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 -- cgit v1.2.3