From 604587a5d96cd1b532a68e60be2c52eba72c0c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 9 Aug 2020 20:14:43 +0200 Subject: plugins/time_marker: use now required poezio.ui.types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/time_marker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/time_marker.py b/plugins/time_marker.py index 76f7e589..6ce511a0 100644 --- a/plugins/time_marker.py +++ b/plugins/time_marker.py @@ -31,6 +31,7 @@ Messages like “2 hours, 25 minutes passed…” are automatically displayed in from poezio.plugin import BasePlugin from datetime import datetime, timedelta +from poezio.ui.types import InfoMessage class Plugin(BasePlugin): @@ -72,4 +73,5 @@ class Plugin(BasePlugin): delta = datetime.now() - last_message_date if delta >= timedelta(0, self.config.get('delay', 900)): tab.add_message( - "%s passed…" % (format_timedelta(delta), ), str_time='') + InfoMessage("%s passed…" % (format_timedelta(delta), )) + ) -- cgit v1.2.3