Continue phase 2 of modules stuff.
[citadel.git] / citadel / modules / autocompletion / serv_autocompletion.c
index ddea4f0dcc0077b015eeb7424b23fe62d2087ef4..5d593e897864accbf65dbb986ddb25bd2ff7f846 100644 (file)
@@ -40,7 +40,6 @@
 #include "room_ops.h"
 #include "database.h"
 #include "vcard.h"
-#include "serv_fulltext.h"
 #include "serv_autocompletion.h"
 
 #include "ctdl_module.h"
@@ -205,7 +204,7 @@ void cmd_auto(char *argbuf) {
         * Search-reduce the results if we have the full text index available
         */
        if (config.c_enable_fulltext) {
-               ft_search(&fts_num_msgs, &fts_msgs, search_string);
+               CtdlModuleDoSearch(&fts_num_msgs, &fts_msgs, search_string, "fulltext");
                if (fts_msgs) {
                        for (i=0; i<num_msgs; ++i) {
                                search_match = 0;