summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-04-10 04:08:33 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-04-10 04:08:33 +0200
commit01509b463b3555c9e630991b3b931c1c30c06ef1 (patch)
tree8fdba9f66b1d6631ac81d8c86db3e5a30227363a
parenta6c56682b74acb7ef568913bbc964b4f17cf3202 (diff)
downloadpoezio-01509b463b3555c9e630991b3b931c1c30c06ef1.tar.gz
poezio-01509b463b3555c9e630991b3b931c1c30c06ef1.tar.bz2
poezio-01509b463b3555c9e630991b3b931c1c30c06ef1.tar.xz
poezio-01509b463b3555c9e630991b3b931c1c30c06ef1.zip
Fix the *args of timed events
-rw-r--r--src/tabs.py1
-rw-r--r--src/timed_events.py2
2 files changed, 1 insertions, 2 deletions
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)