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-14 10:47:37 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-14 10:47:37 +0200
commitdb582a4e5c51f8f83c0d952373b691400ff78178 (patch)
treeda4f53e8254b074cec96ec9e197498c3a7cb85fc /src/common/text.c
parent059e4ec9c8d59f6b283bda3f007ae9d2fd29bc83 (diff)
Remove sound_dir, it's pointless
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 8eabfec9..946ac542 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2243,7 +2243,7 @@ sound_play (const char *file, gboolean quiet)
 	}
 	else
 	{
-		wavfile = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", prefs.hex_sound_dir, file);
+		wavfile = g_build_filename (get_xdir (), "sounds", file, NULL);
 	}
 
 	if (g_access (wavfile, R_OK) == 0)