X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsysmsgs.c;h=99f84533ebad507d4b8335a1d21c41ebd43ea5e5;hb=HEAD;hp=31d6514eccc3cd40bcc9de10d1647615cb20cdbd;hpb=98262c0aab1a46d19a5f52a3bf96146c4ae02cc9;p=citadel.git diff --git a/webcit/sysmsgs.c b/webcit/sysmsgs.c index 31d6514ec..99f84533e 100644 --- a/webcit/sysmsgs.c +++ b/webcit/sysmsgs.c @@ -28,23 +28,34 @@ void save_edit(char *description, char *enter_cmd, int regoto) display_main_menu(); return; } + templ = sbstr("template"); Line = NewStrBuf(); serv_puts(enter_cmd); StrBuf_ServGetln(Line); if (GetServerStatusMsg(Line, NULL, 1, 0) != 4) { + putlbstr("success", 0); FreeStrBuf(&Line); - display_main_menu(); + if (templ != NULL) { + output_headers(1, 0, 0, 0, 0, 0); + DoTemplate(SKEY(templ), NULL, &NoCtx); + end_burst(); + } + else { + display_main_menu(); + } return; } FreeStrBuf(&Line); text_to_server(bstr("msgtext")); serv_puts("000"); - templ=sbstr("template"); AppendImportantMessage(description, -1); AppendImportantMessage(_(" has been saved."), -1); + putlbstr("success", 1); if (templ != NULL) { + output_headers(1, 0, 0, 0, 0, 0); DoTemplate(SKEY(templ), NULL, &NoCtx); + end_burst(); } else if (regoto) { smart_goto(WC->CurRoom.name);