summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-12-18 20:16:19 +0100
committermathieui <mathieui@mathieui.net>2011-12-18 20:16:19 +0100
commit9e7842d0146d64f6a99aa5950a3f4308bb1d8a16 (patch)
tree6179932552493d7fdf21570b92eb8deaff995e24
parent0b2037a67c60c860dd50f572cca34e9e0595c1e4 (diff)
downloadpoezio-9e7842d0146d64f6a99aa5950a3f4308bb1d8a16.tar.gz
poezio-9e7842d0146d64f6a99aa5950a3f4308bb1d8a16.tar.bz2
poezio-9e7842d0146d64f6a99aa5950a3f4308bb1d8a16.tar.xz
poezio-9e7842d0146d64f6a99aa5950a3f4308bb1d8a16.zip
Beep when receiving a MUC invitation (by default)
-rw-r--r--data/default_config.cfg3
-rw-r--r--src/core.py2
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):