From a54ee0229df0d6c6782429b5b4a261ded31b33e3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 17 Jul 2006 10:04:43 +0000 Subject: [PATCH] introduce play_sound_file function in helpers --- src/common/helpers.py | 3 +++ 1 file changed, 3 insertions(+) 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