summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-16 20:35:24 +0200
committermathieui <mathieui@mathieui.net>2021-04-16 20:35:24 +0200
commitae9d8ae291a50e5264ef0948a18c9b5bb8a67695 (patch)
treef40f93dab853e9d346826ea3d4b93e2c8f6c3bf9
parent244dbf3a22383be07571f89c680b1aae1253c9a0 (diff)
downloadpoezio-ae9d8ae291a50e5264ef0948a18c9b5bb8a67695.tar.gz
poezio-ae9d8ae291a50e5264ef0948a18c9b5bb8a67695.tar.bz2
poezio-ae9d8ae291a50e5264ef0948a18c9b5bb8a67695.tar.xz
poezio-ae9d8ae291a50e5264ef0948a18c9b5bb8a67695.zip
fix: handle /me message properly when logging
tangentially fix #3432 (but it was not relevant for a while)
-rw-r--r--poezio/logger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/logger.py b/poezio/logger.py
index e46be469..429d5328 100644
--- a/poezio/logger.py
+++ b/poezio/logger.py
@@ -235,6 +235,8 @@ class Logger:
typ = 'MI'
if isinstance(msg, Message):
nick = msg.nickname or ''
+ if msg.me:
+ txt = f'/me {txt}'
typ = 'MR'
logged_msg = build_log_message(nick, txt, date=date, prefix=typ)
if not logged_msg: