diff options
author | mathieui <mathieui@mathieui.net> | 2014-05-04 23:31:25 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-05-04 23:31:25 +0200 |
commit | 5cfe79e5e1a18bf1ee192b5c363368a841bccdea (patch) | |
tree | 87521bbd8f06051df7910669eb718924203ce6cb | |
parent | 7378ea96d3bb0074c590d3d305141079bae48815 (diff) | |
download | poezio-5cfe79e5e1a18bf1ee192b5c363368a841bccdea.tar.gz poezio-5cfe79e5e1a18bf1ee192b5c363368a841bccdea.tar.bz2 poezio-5cfe79e5e1a18bf1ee192b5c363368a841bccdea.tar.xz poezio-5cfe79e5e1a18bf1ee192b5c363368a841bccdea.zip |
Do not beep in a MUC if we receive a message from one of our resources
happens when beep_on contains "message".
thanks eijebong
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | src/core/handlers.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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 diff --git a/src/core/handlers.py b/src/core/handlers.py index 525613aa..6d775a78 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -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): |