Commit a72a4845 authored by Maxime Buquet's avatar Maxime Buquet
Browse files

Merge branch 'timemarker-uitypes' into 'master'

plugins/time_marker: use now required poezio.ui.types

See merge request poezio/poezio!153
parents f065fbae 604587a5
......@@ -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 = - last_message_date
if delta >= timedelta(0, self.config.get('delay', 900)):
"%s passed…" % (format_timedelta(delta), ), str_time='')
InfoMessage("%s passed…" % (format_timedelta(delta), ))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment