replace /me by nickname in notifications. fixes #3609

This commit is contained in:
Yann Leboulanger 2007-12-31 00:24:59 +00:00
parent 458696948d
commit 077e3370f5
1 changed files with 2 additions and 0 deletions

View File

@ -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 = ''