disco.c
changeset 59 50173578fddc
parent 54 170801fe3bdf
child 60 db0a96df96b5
--- a/disco.c	Mon Aug 20 22:51:51 2012 +0300
+++ b/disco.c	Thu Oct 18 22:47:45 2012 +0300
@@ -648,7 +648,11 @@
 void disco_init (void)
 {
 	// completion
+#ifdef MCABBER_API_HAVE_COMPL_FLAGS
+	disco_cid = compl_new_category (COMPL_FLAGS_SORT);
+#else
 	disco_cid = compl_new_category ();
+#endif
 	if (disco_cid) {
 		compl_add_category_word (disco_cid, "info");
 		compl_add_category_word (disco_cid, "items");