From 9acca77e1239a18d9cc48e3fc421d60c82df3313 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 19 Dec 2014 22:28:36 +0100 Subject: Fix /info (9/78) --- src/tabs/privatetab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs/privatetab.py b/src/tabs/privatetab.py index aa19d4d4..d6eb0527 100644 --- a/src/tabs/privatetab.py +++ b/src/tabs/privatetab.py @@ -215,8 +215,8 @@ class PrivateTab(OneToOneTab): """ /info """ - if args: - self.parent_muc.command_info(args[0]) + if arg and arg[0]: + self.parent_muc.command_info(arg[0]) else: user = safeJID(self.name).resource self.parent_muc.command_info(user) -- cgit v1.2.3