1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Added help to form config

This commit is contained in:
James Booth 2014-10-07 21:31:34 +01:00
parent fb84c6dcd0
commit 4f0009312f

View File

@ -2488,8 +2488,6 @@ _ui_show_form(ProfWin *window, const char * const room, DataForm *form)
curr_field = g_slist_next(curr_field); curr_field = g_slist_next(curr_field);
} }
win_save_println(window, "");
} }
static void static void
@ -2514,6 +2512,12 @@ _ui_handle_room_configuration(const char * const room, DataForm *form)
ui_switch_win(num); ui_switch_win(num);
ui_show_form(window, room, form); ui_show_form(window, room, form);
win_save_print(window, '-', NULL, 0, 0, "", "");
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "Use '/form submit' to save changes.");
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "Use '/form cancel' to cancel changes.");
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "See '/form help' for more information.");
win_save_print(window, '-', NULL, 0, 0, "", "");
} }
static void static void
@ -2696,7 +2700,7 @@ static void
_ui_show_form_help(ProfWin *window, DataForm *form) _ui_show_form_help(ProfWin *window, DataForm *form)
{ {
if (form->instructions != NULL) { if (form->instructions != NULL) {
win_save_print(window, '-', NULL, 0, 0, "", "Instructions:"); win_save_print(window, '-', NULL, 0, 0, "", "Supplied instructions:");
win_save_print(window, '-', NULL, 0, 0, "", form->instructions); win_save_print(window, '-', NULL, 0, 0, "", form->instructions);
win_save_print(window, '-', NULL, 0, 0, "", ""); win_save_print(window, '-', NULL, 0, 0, "", "");
} }