mcabber/mcabber/commands.c
changeset 1923 924f4552996c
parent 1921 7d72b7d2d93a
child 1938 26e437e79e60
equal deleted inserted replaced
1922:4ba68ad737bc 1923:924f4552996c
   193   cmd_add("status", "Show or set your status", COMPL_STATUS, 0, &do_status);
   193   cmd_add("status", "Show or set your status", COMPL_STATUS, 0, &do_status);
   194   cmd_add("status_to", "Show or set your status for one recipient",
   194   cmd_add("status_to", "Show or set your status for one recipient",
   195           COMPL_JID, COMPL_STATUS, &do_status_to);
   195           COMPL_JID, COMPL_STATUS, &do_status_to);
   196   cmd_add("version", "Show mcabber version", 0, 0, &do_version);
   196   cmd_add("version", "Show mcabber version", 0, 0, &do_version);
   197 #ifdef MODULES_ENABLE
   197 #ifdef MODULES_ENABLE
   198   cmd_add("module", "Manipulations with modules", 0, 0, &do_module);
   198   cmd_add("module", "Manipulations with modules", COMPL_MODULE, 0, &do_module);
   199 #endif
   199 #endif
   200 
   200 
   201   // Status category
   201   // Status category
   202   compl_add_category_word(COMPL_STATUS, "online");
   202   compl_add_category_word(COMPL_STATUS, "online");
   203   compl_add_category_word(COMPL_STATUS, "avail");
   203   compl_add_category_word(COMPL_STATUS, "avail");
   328 
   328 
   329   // Color category
   329   // Color category
   330   compl_add_category_word(COMPL_COLOR, "roster");
   330   compl_add_category_word(COMPL_COLOR, "roster");
   331   compl_add_category_word(COMPL_COLOR, "muc");
   331   compl_add_category_word(COMPL_COLOR, "muc");
   332   compl_add_category_word(COMPL_COLOR, "mucnick");
   332   compl_add_category_word(COMPL_COLOR, "mucnick");
       
   333 
       
   334 #ifdef MODULES_ENABLE
       
   335   // Module category
       
   336   compl_add_category_word(COMPL_MODULE, "info");
       
   337   compl_add_category_word(COMPL_MODULE, "list");
       
   338   compl_add_category_word(COMPL_MODULE, "load");
       
   339   compl_add_category_word(COMPL_MODULE, "unload");
       
   340 #endif
   333 }
   341 }
   334 
   342 
   335 //  expandalias(line)
   343 //  expandalias(line)
   336 // If there is one, expand the alias in line and returns a new allocated line
   344 // If there is one, expand the alias in line and returns a new allocated line
   337 // If no alias is found, returns line
   345 // If no alias is found, returns line