summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)