Added form to WIN_MUC_CONFIG type
This commit is contained in:
@@ -1666,8 +1666,8 @@ cmd_reset_autocomplete()
|
||||
|
||||
if (ui_current_win_type() == WIN_MUC_CONFIG) {
|
||||
ProfWin *window = wins_get_current();
|
||||
if (window && window->form) {
|
||||
form_reset_autocompleters(window->form);
|
||||
if (window && window->wins.conf.form) {
|
||||
form_reset_autocompleters(window->wins.conf.form);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2455,10 +2455,14 @@ _resource_autocomplete(char *input, int *size)
|
||||
static char *
|
||||
_form_autocomplete(char *input, int *size)
|
||||
{
|
||||
ProfWin *current = wins_get_current();
|
||||
if (current->type != WIN_MUC_CONFIG) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *found = NULL;
|
||||
|
||||
ProfWin *current = wins_get_current();
|
||||
DataForm *form = current->form;
|
||||
DataForm *form = current->wins.conf.form;
|
||||
if (form) {
|
||||
found = autocomplete_param_with_ac(input, size, "/form help", form->tag_ac, TRUE);
|
||||
if (found != NULL) {
|
||||
@@ -2477,11 +2481,14 @@ _form_autocomplete(char *input, int *size)
|
||||
static char *
|
||||
_form_field_autocomplete(char *input, int *size)
|
||||
{
|
||||
ProfWin *current = wins_get_current();
|
||||
if (current->type != WIN_MUC_CONFIG) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *found = NULL;
|
||||
|
||||
ProfWin *current = wins_get_current();
|
||||
DataForm *form = current->form;
|
||||
|
||||
DataForm *form = current->wins.conf.form;
|
||||
if (form == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user