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 /src/core | |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |