From 3897d131c1cf971a6ceb6c3d86cf83813bc26dcd Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 2 Aug 2012 16:24:10 +0200 Subject: Implement XEP-0012 (last activity) ; Fixes #1870 - Add a /activity command - Load xep_0012 on start - Add a 'l' shortcut in the roster to get the last activity - Using "/activity" in a direct conversation will add a message in the conversation, and not in the info buffer. --- src/common.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common.py') diff --git a/src/common.py b/src/common.py index 647454cb..aae5928c 100644 --- a/src/common.py +++ b/src/common.py @@ -233,6 +233,8 @@ def parse_secs_to_str(duration=0): result += '%sh' % hours if hours else '' result += '%sm' % mins if mins else '' result += '%ss' % secs if secs else '' + if not result: + result = '0s' return result def parse_command_args_to_alias(arg, strto): -- cgit v1.2.3