if sound is beep then we beep in speaker

This commit is contained in:
Nikos Kouremenos 2005-09-11 20:33:10 +00:00
parent ad3d571429
commit 74cc23031c
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@ def play_sound(event):
if not gajim.config.get('sounds_on'):
return
path_to_soundfile = gajim.config.get_per('soundevents', event, 'path')
if path_to_soundfile == 'beep':
print '\a' # make a speaker beep
return
if not os.path.exists(path_to_soundfile):
return
if os.name == 'nt':