Commit 5cfe79e5 authored by mathieui's avatar mathieui

Do not beep in a MUC if we receive a message from one of our resources

happens when beep_on contains "message".

thanks eijebong
parent 7378ea96
......@@ -152,6 +152,7 @@ we merge it to “master” as well, of course).
- Todd Eisenberger (todd@teisen.be) - Plugin system and OTR support
- Jérôme Parment (Manfraid) - Code, testing
- Link Mauve - Code, testing
- Eijebong - Code
- Gaëtan Ribémont (http://www.bonbref.com) - Logo design
- Ovart - Testing
- Koshie - Donation
......
......@@ -477,7 +477,8 @@ def on_groupchat_message(self, message):
self.doupdate()
if 'message' in config.get('beep_on', 'highlight private').split():
if not config.get_by_tabname('disable_beep', False, room_from, False):
if (not config.get_by_tabname('disable_beep', False, room_from, False)
and self.own_nick != message['from'].resource):
curses.beep()
def on_muc_own_nickchange(self, muc):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment