Added /roster clearnick command

This commit is contained in:
James Booth
2014-03-16 17:53:41 +00:00
parent bcafba2de6
commit 11c04d9fcd
7 changed files with 237 additions and 37 deletions

View File

@@ -1015,6 +1015,7 @@ cmd_init(void)
roster_ac = autocomplete_new();
autocomplete_add(roster_ac, "add");
autocomplete_add(roster_ac, "nick");
autocomplete_add(roster_ac, "clearnick");
autocomplete_add(roster_ac, "remove");
group_ac = autocomplete_new();
@@ -1564,6 +1565,10 @@ _roster_autocomplete(char *input, int *size)
if (result != NULL) {
return result;
}
result = autocomplete_param_with_func(input, size, "/roster clearnick", roster_find_jid);
if (result != NULL) {
return result;
}
result = autocomplete_param_with_func(input, size, "/roster remove", roster_find_jid);
if (result != NULL) {
return result;