summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-04 23:31:25 +0200
committermathieui <mathieui@mathieui.net>2014-05-04 23:31:25 +0200
commit5cfe79e5e1a18bf1ee192b5c363368a841bccdea (patch)
tree87521bbd8f06051df7910669eb718924203ce6cb
parent7378ea96d3bb0074c590d3d305141079bae48815 (diff)
downloadpoezio-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--README1
-rw-r--r--src/core/handlers.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index 2957734a..f05541ab 100644
--- a/README
+++ b/README
@@ -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):