tune.c
changeset 41 cfb02882828d
parent 35 a77a8e7ab8ae
child 44 636ef7fe3d5b
--- a/tune.c	Sun Sep 23 15:38:29 2012 +0300
+++ b/tune.c	Thu Oct 18 23:24:14 2012 +0300
@@ -236,7 +236,12 @@
 
 void tune_init(void)
 {
+#ifdef MCABBER_API_HAVE_COMPL_FLAGS
+	tune_cid = compl_new_category (COMPL_FLAGS_SORT);
+#else
 	tune_cid = compl_new_category ();
+#endif
+
 	if (tune_cid) {
 		compl_add_category_word (tune_cid, "artist=");
 		compl_add_category_word (tune_cid, "length=");