diff --git a/src/common/helpers.py b/src/common/helpers.py index e8b4a0eef..a462839a9 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -418,6 +418,9 @@ def play_sound(event): if not gajim.config.get('sounds_on'): return path_to_soundfile = gajim.config.get_per('soundevents', event, 'path') + play_sound_file(path_to_soundfile) + +def play_sound_file(path_to_soundfile): if path_to_soundfile == 'beep': print '\a' # make a speaker beep return