fix: handle /me message properly when logging
tangentially fix #3432 (but it was not relevant for a while)
This commit is contained in:
parent
244dbf3a22
commit
ae9d8ae291
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue