From 0d51b63581be517a7ce2764e77cbe8d2b3e4eedc Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 17 Jan 2015 19:36:41 +1300 Subject: [PATCH] Fix history.py tracking --- README.md | 1 + plugins/history.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ea81aded3..ef37f017a 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ If you think you have found a bug/have a idea/suggestion, please **open a issue* You can find a number of example bots in [#CloudBot](irc://irc.esper.net/cloudbot "Connect via IRC to #CloudBot on irc.esper.net"). ## Changelog + - **1.0.1** - Fix history.py tracking - **1.0.0** - Initial stable release ## License diff --git a/plugins/history.py b/plugins/history.py index 330c3710e..b680f251b 100644 --- a/plugins/history.py +++ b/plugins/history.py @@ -54,7 +54,7 @@ def track_history(event, message_time, conn): history.append(data) -@hook.event(EventType.message, EventType.action, singlethread=True) +@hook.event([EventType.message, EventType.action], singlethread=True) def chat_tracker(event, db, conn): """ :type db: sqlalchemy.orm.Session