fix: handle /me message properly when logging

tangentially fix #3432 (but it was not relevant for a while)
This commit is contained in:
mathieui 2021-04-16 20:35:24 +02:00
parent 244dbf3a22
commit ae9d8ae291

View file

@ -235,6 +235,8 @@ class Logger:
typ = 'MI' typ = 'MI'
if isinstance(msg, Message): if isinstance(msg, Message):
nick = msg.nickname or '' nick = msg.nickname or ''
if msg.me:
txt = f'/me {txt}'
typ = 'MR' typ = 'MR'
logged_msg = build_log_message(nick, txt, date=date, prefix=typ) logged_msg = build_log_message(nick, txt, date=date, prefix=typ)
if not logged_msg: if not logged_msg: