From 9e7842d0146d64f6a99aa5950a3f4308bb1d8a16 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 18 Dec 2011 20:16:19 +0100 Subject: Beep when receiving a MUC invitation (by default) --- data/default_config.cfg | 3 ++- src/core.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3