diff options
Diffstat (limited to 'poezio')
-rw-r--r-- | poezio/config.py | 2 | ||||
-rw-r--r-- | poezio/core/handlers.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py index 155b11ba..f70f75e2 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -32,7 +32,7 @@ DEFAULT_CONFIG = { 'auto_reconnect': True, 'autorejoin_delay': '5', 'autorejoin': False, - 'beep_on': 'highlight private invite', + 'beep_on': 'highlight private invite disconnect', 'ca_cert_path': '', 'certificate': '', 'certfile': '', 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() |