Fix /info (9/78)

This commit is contained in:
mathieui 2014-12-19 22:28:36 +01:00
parent 26025511cf
commit 9acca77e12
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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)