diff options
author | mathieui <mathieui@mathieui.net> | 2011-12-18 20:16:19 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:05:34 +0100 |
commit | 825d5a6dd1aee29aef12d49d147b50f8ce7c15d0 (patch) | |
tree | 6179932552493d7fdf21570b92eb8deaff995e24 | |
parent | 3d9193509e44f0767d3b5d0d5f984a90fec572e3 (diff) | |
download | poezio-825d5a6dd1aee29aef12d49d147b50f8ce7c15d0.tar.gz poezio-825d5a6dd1aee29aef12d49d147b50f8ce7c15d0.tar.bz2 poezio-825d5a6dd1aee29aef12d49d147b50f8ce7c15d0.tar.xz poezio-825d5a6dd1aee29aef12d49d147b50f8ce7c15d0.zip |
Beep when receiving a MUC invitation (by default)
-rw-r--r-- | data/default_config.cfg | 3 | ||||
-rw-r--r-- | src/core.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg index 540e021e..9763765b 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -170,7 +170,8 @@ show_inactive_tabs = true # - private (when a new private message is received, from your contacts or # someone from a MUC) # - message (any message from a MUC) -beep_on = highlight private +# - invite (when you receive an invitation for joining a MUC) +beep_on = highlight private invite # Theme diff --git a/src/core.py b/src/core.py index 3bb0436e..d0f6c4de 100644 --- a/src/core.py +++ b/src/core.py @@ -371,6 +371,8 @@ class Core(object): if password: msg += ". The password is \"%s\"." % password self.information(msg, 'Info') + if 'invite' in config.get('beep_on', 'invite').split(): + curses.beep() self.pending_invites[jid.bare] = inviter.full def command_invite(self, arg): |