Skip to content
Snippets Groups Projects
Commit 077e3370 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

replace /me by nickname in notifications. fixes #3609

parent 45869694
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,8 @@ def notify(event, jid, account, parameters, advanced_notif_num = None):
nickname = parameters[2]
if gajim.config.get('notification_preview_message'):
message = parameters[3]
if message.startswith('/me ') or message.startswith('/me\n'):
message = '* ' + nickname + message[3:]
else:
# We don't want message preview, do_preview = False
message = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment