From 01509b463b3555c9e630991b3b931c1c30c06ef1 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 10 Apr 2011 04:08:33 +0200 Subject: Fix the *args of timed events --- src/tabs.py | 1 - src/timed_events.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index ac434745..2e62b5c4 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -291,7 +291,6 @@ class ChatTab(Tab): """ Send an empty chatstate message """ - state = '%s' % state msg = self.core.xmpp.make_message(self.get_name()) msg['type'] = self.message_type msg['chat_state'] = state diff --git a/src/timed_events.py b/src/timed_events.py index 66d3449e..335fc6be 100644 --- a/src/timed_events.py +++ b/src/timed_events.py @@ -77,5 +77,5 @@ class DelayedEvent(TimedEvent): """ def __init__(self, delay, callback, *args): date = datetime.datetime.now() + datetime.timedelta(seconds=delay) - TimedEvent.__init__(self, date, callback, args) + TimedEvent.__init__(self, date, callback, *args) -- cgit v1.2.3