From 98262c0aab1a46d19a5f52a3bf96146c4ae02cc9 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 30 Dec 2015 16:19:36 +0100 Subject: [PATCH] Templatize the info editing boxes --- webcit/po/webcit/ar.po | 4 +- webcit/po/webcit/bg.po | 2 +- webcit/po/webcit/cs.po | 4 +- webcit/po/webcit/da.po | 4 +- webcit/po/webcit/de.po | 4 +- webcit/po/webcit/el.po | 2 +- webcit/po/webcit/en_GB.po | 4 +- webcit/po/webcit/es.po | 4 +- webcit/po/webcit/et.po | 2 +- webcit/po/webcit/fi.po | 2 +- webcit/po/webcit/fr.po | 4 +- webcit/po/webcit/he.po | 2 +- webcit/po/webcit/hu.po | 2 +- webcit/po/webcit/it.po | 4 +- webcit/po/webcit/kk.po | 2 +- webcit/po/webcit/ko.po | 2 +- webcit/po/webcit/nl.po | 4 +- webcit/po/webcit/pl.po | 4 +- webcit/po/webcit/pt_BR.po | 4 +- webcit/po/webcit/ro.po | 4 +- webcit/po/webcit/ru.po | 2 +- webcit/po/webcit/sl.po | 2 +- webcit/po/webcit/sv.po | 2 +- webcit/po/webcit/tr.po | 2 +- webcit/po/webcit/webcit.pot | 2 +- webcit/po/webcit/zh.po | 4 +- webcit/static/t/menu/your_info.html | 2 +- webcit/static/t/room/edit/tab_admin.html | 2 +- webcit/static/t/room/edit_info.html | 26 ++++++++ webcit/static/t/user/edit_bio.html | 26 ++++++++ webcit/sysmsgs.c | 77 +++--------------------- webcit/useredit.c | 3 + 32 files changed, 104 insertions(+), 110 deletions(-) create mode 100644 webcit/static/t/room/edit_info.html create mode 100644 webcit/static/t/user/edit_bio.html diff --git a/webcit/po/webcit/ar.po b/webcit/po/webcit/ar.po index b986b72e7..77ae413e6 100644 --- a/webcit/po/webcit/ar.po +++ b/webcit/po/webcit/ar.po @@ -189,10 +189,10 @@ msgstr "تحرير %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"ادخل %s في النص المهيئ لقارئة المتصفخ الخط الجديد يتم فرض خط جديد فارغ" +"في النص المهيئ لقارئة المتصفخ الخط الجديد يتم فرض خط جديد فارغ" #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 #: ../../i18n_templatelist.c:194 ../../i18n_templatelist.c:355 diff --git a/webcit/po/webcit/bg.po b/webcit/po/webcit/bg.po index 755ad5294..231dbabe5 100644 --- a/webcit/po/webcit/bg.po +++ b/webcit/po/webcit/bg.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/cs.po b/webcit/po/webcit/cs.po index 3be11bd52..8a169c66b 100644 --- a/webcit/po/webcit/cs.po +++ b/webcit/po/webcit/cs.po @@ -189,10 +189,10 @@ msgstr "Upravit %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Vložte %s dolu. Text je formátován pro prohlížeč návštěvníka. Nová řádka je " +"Text je formátován pro prohlížeč návštěvníka. Nová řádka je " "vynucena následující druhou prázdnou řádkou." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/da.po b/webcit/po/webcit/da.po index 7119cfe0e..230b1893d 100644 --- a/webcit/po/webcit/da.po +++ b/webcit/po/webcit/da.po @@ -188,10 +188,10 @@ msgstr "Editér %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Skriv %s nedenfor. Tekst er formatteret til læserens skærmbredde. For at " +"Tekst er formatteret til læserens skærmbredde. For at " "overvinde formatteringen, indfør en linie mindst et mellemrum." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/de.po b/webcit/po/webcit/de.po index 4dd017bd9..627135f76 100644 --- a/webcit/po/webcit/de.po +++ b/webcit/po/webcit/de.po @@ -193,10 +193,10 @@ msgstr "%s bearbeiten" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Geben sie hier %s ein. Der Text wird auf dem Browser des Lesers formatiert." +"Der Text wird auf dem Browser des Lesers formatiert." "Eine neue Zeile erzwingt man, indem man die nächste Zeile mit einem " "Leerschritt beginnt." diff --git a/webcit/po/webcit/el.po b/webcit/po/webcit/el.po index a080993d4..c189943d3 100644 --- a/webcit/po/webcit/el.po +++ b/webcit/po/webcit/el.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/en_GB.po b/webcit/po/webcit/en_GB.po index c86bf62b4..dabc9075a 100644 --- a/webcit/po/webcit/en_GB.po +++ b/webcit/po/webcit/en_GB.po @@ -192,10 +192,10 @@ msgstr "Edit %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/es.po b/webcit/po/webcit/es.po index c74404f38..b9bfd1f15 100644 --- a/webcit/po/webcit/es.po +++ b/webcit/po/webcit/es.po @@ -194,10 +194,10 @@ msgstr "Editar %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Introducir %s abajo. El texto se reformateará según ancho de pantalla del " +"El texto se reformateará según ancho de pantalla del " "lector. To defeat the formatting, indent a line at least one space." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/et.po b/webcit/po/webcit/et.po index c1ed1d38f..521eae92b 100644 --- a/webcit/po/webcit/et.po +++ b/webcit/po/webcit/et.po @@ -189,7 +189,7 @@ msgstr "Muuda %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/fi.po b/webcit/po/webcit/fi.po index 18b124312..de5802a09 100644 --- a/webcit/po/webcit/fi.po +++ b/webcit/po/webcit/fi.po @@ -189,7 +189,7 @@ msgstr "Muokkaa %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/fr.po b/webcit/po/webcit/fr.po index 85b9e71b8..db7adc7f0 100644 --- a/webcit/po/webcit/fr.po +++ b/webcit/po/webcit/fr.po @@ -196,10 +196,10 @@ msgstr "Éditer %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Écrivez %s ci-dessous. Le texte est composé à la largeur de l'écran du " +"Le texte est composé à la largeur de l'écran du " "lecteur. Pour modifier ce formatage, indentez une ligne d'au moins un espace." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/he.po b/webcit/po/webcit/he.po index 1f93d4366..d1e41324a 100644 --- a/webcit/po/webcit/he.po +++ b/webcit/po/webcit/he.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/hu.po b/webcit/po/webcit/hu.po index 30a75ddb6..6c5f361dd 100644 --- a/webcit/po/webcit/hu.po +++ b/webcit/po/webcit/hu.po @@ -190,7 +190,7 @@ msgstr "%s szerkesztése" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/it.po b/webcit/po/webcit/it.po index 5ca08aa1b..15a227ba1 100644 --- a/webcit/po/webcit/it.po +++ b/webcit/po/webcit/it.po @@ -189,10 +189,10 @@ msgstr "Modifica %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Inserisci %s qui sotto. Il testo viene formattato dalla larghezza dello " +"Il testo viene formattato dalla larghezza dello " "schermo del lettore. Per non seguire la formattazione, indentare la linea di " "almeno uno spazio." diff --git a/webcit/po/webcit/kk.po b/webcit/po/webcit/kk.po index f812f965d..026c19e06 100644 --- a/webcit/po/webcit/kk.po +++ b/webcit/po/webcit/kk.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/ko.po b/webcit/po/webcit/ko.po index 237db57e3..310e183b6 100644 --- a/webcit/po/webcit/ko.po +++ b/webcit/po/webcit/ko.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/nl.po b/webcit/po/webcit/nl.po index 0cb571fa4..3dbbfebd3 100644 --- a/webcit/po/webcit/nl.po +++ b/webcit/po/webcit/nl.po @@ -191,10 +191,10 @@ msgstr "Bewerk %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Voeg hieronder %s toe. Tekst wordt weergegeven op de breedte van het scherm " +"Tekst wordt weergegeven op de breedte van het scherm " "van de lezer. Voor de goede weergave zorg dat een regel in elk geval een " "spatie bevat." diff --git a/webcit/po/webcit/pl.po b/webcit/po/webcit/pl.po index abbc99f03..b2a726edc 100644 --- a/webcit/po/webcit/pl.po +++ b/webcit/po/webcit/pl.po @@ -192,9 +192,9 @@ msgstr "Edytuj %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." -msgstr "Wprowadź %s poniżej. Tekst jest sformatowany dla przeglądarki." +msgstr "Tekst jest sformatowany dla przeglądarki." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 #: ../../i18n_templatelist.c:194 ../../i18n_templatelist.c:355 diff --git a/webcit/po/webcit/pt_BR.po b/webcit/po/webcit/pt_BR.po index 35a04cbf1..0a8ff4dab 100644 --- a/webcit/po/webcit/pt_BR.po +++ b/webcit/po/webcit/pt_BR.po @@ -193,10 +193,10 @@ msgstr "Editar %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Digite %s abaixo. O texto é formatado com o browser do leitor. Uma nova " +"O texto é formatado com o browser do leitor. Uma nova " "linha é forçada precedendo a nova linha por uma em branco." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/ro.po b/webcit/po/webcit/ro.po index 8068273a4..22bf6a6cc 100644 --- a/webcit/po/webcit/ro.po +++ b/webcit/po/webcit/ro.po @@ -189,10 +189,10 @@ msgstr "Modifică %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"Introdu mai jos %s. Textul este aranjat după browserul cititorului. Trecerea " +"Textul este aranjat după browserul cititorului. Trecerea " "la linie nouă poate fi forţată precedând linia următoare cu un spaţiu." #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/po/webcit/ru.po b/webcit/po/webcit/ru.po index e6a607b00..285d7835f 100644 --- a/webcit/po/webcit/ru.po +++ b/webcit/po/webcit/ru.po @@ -192,7 +192,7 @@ msgstr "Изменить %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/sl.po b/webcit/po/webcit/sl.po index f3cf26d70..8221e813c 100644 --- a/webcit/po/webcit/sl.po +++ b/webcit/po/webcit/sl.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/sv.po b/webcit/po/webcit/sv.po index 68b1b74f7..89e79f81f 100644 --- a/webcit/po/webcit/sv.po +++ b/webcit/po/webcit/sv.po @@ -190,7 +190,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/tr.po b/webcit/po/webcit/tr.po index 2bb51fb55..ea5b742a4 100644 --- a/webcit/po/webcit/tr.po +++ b/webcit/po/webcit/tr.po @@ -189,7 +189,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/webcit.pot b/webcit/po/webcit/webcit.pot index 99b75c3b6..d00e629a6 100644 --- a/webcit/po/webcit/webcit.pot +++ b/webcit/po/webcit/webcit.pot @@ -188,7 +188,7 @@ msgstr "" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" diff --git a/webcit/po/webcit/zh.po b/webcit/po/webcit/zh.po index e31997643..20a3c6ebe 100644 --- a/webcit/po/webcit/zh.po +++ b/webcit/po/webcit/zh.po @@ -191,10 +191,10 @@ msgstr "编辑 %s" #: ../../sysmsgs.c:49 #, c-format msgid "" -"Enter %s below. Text is formatted to the reader's browser. A newline is " +"The text is formatted to the reader's browser. A newline is " "forced by preceding the next line by a blank." msgstr "" -"请输入下面的 %s。读者的浏览器设置文本格式。前面的一片空白的下一行,会强制换" +"读者的浏览器设置文本格式。前面的一片空白的下一行,会强制换" "行。 " #: ../../sysmsgs.c:61 ../../vcard_edit.c:1217 ../../i18n_templatelist.c:59 diff --git a/webcit/static/t/menu/your_info.html b/webcit/static/t/menu/your_info.html index fb3af7926..b8ecf5527 100644 --- a/webcit/static/t/menu/your_info.html +++ b/webcit/static/t/menu/your_info.html @@ -2,7 +2,7 @@
  • -
  • +
  • diff --git a/webcit/static/t/room/edit/tab_admin.html b/webcit/static/t/room/edit/tab_admin.html index 9e0f47946..52b83f042 100644 --- a/webcit/static/t/room/edit/tab_admin.html +++ b/webcit/static/t/room/edit/tab_admin.html @@ -11,7 +11,7 @@
  • - +
  • diff --git a/webcit/static/t/room/edit_info.html b/webcit/static/t/room/edit_info.html new file mode 100644 index 000000000..b0af30e09 --- /dev/null +++ b/webcit/static/t/room/edit_info.html @@ -0,0 +1,26 @@ + + +
    + + + + + + +
    + + + +
    + +  +
    +
    + +
    + +
    + + diff --git a/webcit/static/t/user/edit_bio.html b/webcit/static/t/user/edit_bio.html new file mode 100644 index 000000000..11ca66880 --- /dev/null +++ b/webcit/static/t/user/edit_bio.html @@ -0,0 +1,26 @@ + + +
    + + + + + + +
    + + + +
    + +  +
    +
    + +
    + +
    + + diff --git a/webcit/sysmsgs.c b/webcit/sysmsgs.c index 70a46de99..31d6514ec 100644 --- a/webcit/sysmsgs.c +++ b/webcit/sysmsgs.c @@ -12,63 +12,6 @@ #include "webcit.h" - -/** - * display the form for editing something (room info, bio, etc) - * description the descriptive text for the box - * check_cmd command to check???? - * read_cmd read answer from citadel server??? - * save_cmd save comand to the citadel server?? - * with_room_banner should we bisplay a room banner? - */ -void display_edit(char *description, char *check_cmd, - char *read_cmd, char *save_cmd, int with_room_banner) -{ - StrBuf *Line; - - serv_puts(check_cmd); - Line = NewStrBuf(); - StrBuf_ServGetln(Line); - if (GetServerStatusMsg(Line, NULL, 1, 2) != 2) { - FreeStrBuf(&Line); - display_main_menu(); - FreeStrBuf(&Line); - return; - } - if (with_room_banner) { - output_headers(1, 1, 1, 0, 0, 0); - } - else { - output_headers(1, 1, 0, 0, 0, 0); - } - - do_template("box_begin_1"); - StrBufAppendPrintf (WC->WBuf, _("Edit %s"), description); - do_template("box_begin_2"); - - wc_printf(_("Enter %s below. Text is formatted to the reader's browser." - " A newline is forced by preceding the next line by a blank."), description); - - wc_printf("
    \n", save_cmd); - wc_printf("\n", WC->nonce); - wc_printf("
    \n"); - wc_printf("", _("Save changes")); - wc_printf(" "); - wc_printf("
    \n", _("Cancel")); - wc_printf("
    \n"); - - do_template("box_end"); - wDumpContent(1); - FreeStrBuf(&Line); -} - - /** * save a screen which was displayed with display_edit() * description the window title??? @@ -78,6 +21,7 @@ void display_edit(char *description, char *check_cmd, void save_edit(char *description, char *enter_cmd, int regoto) { StrBuf *Line; + const StrBuf *templ; if (!havebstr("save_button")) { AppendImportantMessage(_("Cancelled. %s was not saved."), -1); @@ -96,33 +40,28 @@ void save_edit(char *description, char *enter_cmd, int regoto) text_to_server(bstr("msgtext")); serv_puts("000"); - if (regoto) { + templ=sbstr("template"); + AppendImportantMessage(description, -1); + AppendImportantMessage(_(" has been saved."), -1); + if (templ != NULL) { + DoTemplate(SKEY(templ), NULL, &NoCtx); + } + else if (regoto) { smart_goto(WC->CurRoom.name); } else { - AppendImportantMessage(description, -1); - AppendImportantMessage(_(" has been saved."), -1); display_main_menu(); return; } } -void display_editinfo(void){ display_edit(_("Room info"), "EINF 0", "RINF", "editinfo", 1);} void editinfo(void) {save_edit(_("Room info"), "EINF 1", 1);} -void display_editbio(void) { - char buf[SIZ]; - - snprintf(buf, SIZ, "RBIO %s", ChrPtr(WC->wc_fullname)); - display_edit(_("Your bio"), "NOOP", buf, "editbio", 3); -} void editbio(void) { save_edit(_("Your bio"), "EBIO", 0); } void InitModule_SYSMSG (void) { - WebcitAddUrlHandler(HKEY("display_editinfo"), "", 0, display_editinfo, 0); WebcitAddUrlHandler(HKEY("editinfo"), "", 0, editinfo, 0); - WebcitAddUrlHandler(HKEY("display_editbio"), "", 0, display_editbio, 0); WebcitAddUrlHandler(HKEY("editbio"), "", 0, editbio, 0); } diff --git a/webcit/useredit.c b/webcit/useredit.c index fd26e8a39..2751ecde9 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -451,6 +451,9 @@ void tmplput_USER_BIO(StrBuf *Target, WCTemplputParams *TP) long len; GetTemplateTokenString(Target, TP, 0, &who, &len); + if (len == 0) { + who = ChrPtr(WC->wc_fullname); + } Buf = NewStrBuf(); serv_printf("RBIO %s", who); -- 2.30.2