Skip to content

Commit 5b9069e

Browse files
author
Gianni Van Hoecke
committed
Respect the show_message_text option for other messages
1 parent 4afd5e5 commit 5b9069e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notification_center.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ def notify(data, buffer, date, tags, displayed, highlight, prefix, message):
5959
else:
6060
Notifier.notify('From %s' % prefix, title='Private Message', sound=sound)
6161
elif weechat.config_get_plugin('show_other_message') == 'on':
62-
Notifier.notify(message, title='By %s in %s' % (prefix, channel), sound=sound_on_other_message)
63-
62+
if weechat.config_get_plugin('show_message_text') == 'on':
63+
Notifier.notify(message, title='By %s in %s' % (prefix, channel), sound=sound_on_other_message)
64+
else:
65+
Notifier.notify('In %s by %s' % (channel, prefix), title='New Message', sound=sound_on_other_message)
6466
return weechat.WEECHAT_RC_OK
6567

6668
weechat.hook_print('', 'irc_privmsg', '', 1, 'notify', '')

0 commit comments

Comments
 (0)