summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-04-28 04:12:00 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-28 04:12:00 +0200
commita3ba8d575e972ec1ee18b29007c58276625e77d3 (patch)
treed24cef9943468d4704dfcdce4aff14fd4e7dbce3 /src/common/text.c
parentea48d18130e6266a8492ff53a459f3dc68b387e9 (diff)
Store just the filename if the sound file comes from the default sound dir
And get rid of some hardcoding while we're at it
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 3fb69dc9..98ddd775 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2231,7 +2231,7 @@ sound_play (const char *file, gboolean quiet)
 	}
 	else
 	{
-		wavfile = g_build_filename (get_xdir (), "sounds", file, NULL);
+		wavfile = g_build_filename (get_xdir (), HEXCHAT_SOUND_DIR, file, NULL);
 	}
 
 	if (g_access (wavfile, R_OK) == 0)