mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 09:56:22 +00:00
Complete no arg for /affiliation set
This commit is contained in:
@@ -2268,13 +2268,15 @@ _affiliation_autocomplete(ProfWin *window, const char *const input)
|
||||
gboolean parse_result;
|
||||
Autocomplete jid_ac = muc_roster_jid_ac(mucwin->roomjid);
|
||||
|
||||
gchar **args = parse_args(input, 3, 3, &parse_result);
|
||||
gchar **args = parse_args(input, 2, 3, &parse_result);
|
||||
|
||||
if ((strncmp(input, "/affiliation", 12) == 0) && (parse_result == TRUE)) {
|
||||
GString *beginning = g_string_new("/affiliation ");
|
||||
g_string_append(beginning, args[0]);
|
||||
g_string_append(beginning, " ");
|
||||
g_string_append(beginning, args[1]);
|
||||
if (args[1]) {
|
||||
g_string_append(beginning, args[1]);
|
||||
}
|
||||
|
||||
result = autocomplete_param_with_ac(input, beginning->str, jid_ac, TRUE);
|
||||
g_string_free(beginning, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user