replace /me by nickname in notifications. fixes #3609
This commit is contained in:
parent
458696948d
commit
077e3370f5
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue