activity.c
changeset 41 cfb02882828d
parent 35 a77a8e7ab8ae
child 44 636ef7fe3d5b
--- a/activity.c	Sun Sep 23 15:38:29 2012 +0300
+++ b/activity.c	Thu Oct 18 23:24:14 2012 +0300
@@ -261,7 +261,14 @@
 
 void activity_init (void)
 {
+#ifdef MCABBER_API_HAVE_COMPL_FLAGS
+	activity_cid1 = compl_new_category (COMPL_FLAGS_SORT);
+	activity_cid2 = compl_new_category (COMPL_FLAGS_SORT);
+#else
 	activity_cid1 = compl_new_category ();
+	activity_cid2 = compl_new_category ();
+#endif
+
 	if (activity_cid1) {
 		const gchar **activity;
 
@@ -269,7 +276,6 @@
 			compl_add_category_word (activity_cid1, *activity);
 	}
 
-	activity_cid2 = compl_new_category ();
 	if (activity_cid2) {
 		const gchar **activity;