diff -r 574e404ab82f -r cfb02882828d activity.c --- 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;