diff options
author | mathieui <mathieui@mathieui.net> | 2017-10-09 01:06:53 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-10-09 01:06:53 +0200 |
commit | 3b5ea1a961cccf0a45d5df39a904df73931325a4 (patch) | |
tree | 25e32714f361dc306db1f274167e60b7ee6c2411 /poezio/core/handlers.py | |
parent | 156cfb55465371ae95ea61cd02cfcfda442cb1f4 (diff) | |
download | poezio-3b5ea1a961cccf0a45d5df39a904df73931325a4.tar.gz poezio-3b5ea1a961cccf0a45d5df39a904df73931325a4.tar.bz2 poezio-3b5ea1a961cccf0a45d5df39a904df73931325a4.tar.xz poezio-3b5ea1a961cccf0a45d5df39a904df73931325a4.zip |
Fix #3322 (send a beep when we get disconnected)
Diffstat (limited to 'poezio/core/handlers.py')
-rw-r--r-- | poezio/core/handlers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index b52f5d9d..0e74d02d 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1033,6 +1033,8 @@ class HandlerCore: """ When we are disconnected from remote server """ + if 'disconnect' in config.get('beep_on').split(): + curses.beep() roster.connected = 0 # Stop the ping plugin. It would try to send stanza on regular basis self.core.xmpp.plugin['xep_0199'].disable_keepalive() |