Verified Commit a5b15eaf authored by Maxime Buquet's avatar Maxime Buquet
Browse files

plugins/lastlog: adapt to use poezio.ui.types

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 2f60a91b
Pipeline #3318 passed with stages
in 5 minutes and 48 seconds
......@@ -18,7 +18,7 @@ from datetime import datetime
from poezio.plugin import BasePlugin
from poezio import tabs
from poezio.text_buffer import TextBuffer
from poezio.ui.types import InfoMessage
from poezio.ui.types import Message as PMessage, InfoMessage
def add_line(
......@@ -52,7 +52,7 @@ class Plugin(BasePlugin):
res = []
add_line(text_buffer, "Lastlog:")
for message in text_buffer.messages:
if message.nickname is not None and \
if isinstance(message, PMessage) and \ is not None:
add_line(text_buffer, "%s> %s" % (message.nickname, message.txt), message.time)
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