diff mcabber/modules/beep/beep.c @ 2042:0cb8ea02e472

Make completion sorting order configurable * Use allocated plain array for categories * Use callbacks for dynamic completions (private for now) * Add compl_set_flags() to allow user to set completion order * Bump api to 24-24
author Myhailo Danylenko <isbear@ukrpost.net>
date Sat, 20 Oct 2012 18:29:49 +0300
parents ad77110343d6
children
line wrap: on
line diff
--- a/mcabber/modules/beep/beep.c	Thu Nov 22 00:59:19 2012 +0200
+++ b/mcabber/modules/beep/beep.c	Sat Oct 20 18:29:49 2012 +0300
@@ -89,7 +89,7 @@
 static void beep_init(void)
 {
   /* Create completions */
-  beep_cid = compl_new_category();
+  beep_cid = compl_new_category(COMPL_FLAGS_SORT);
   if (beep_cid) {
     compl_add_category_word(beep_cid, "enable");
     compl_add_category_word(beep_cid, "disable");