else {
StrBuf *ReturnTo;
ReturnTo = NewStrBufPlain(HKEY("display_main_menu?gotofirst="));
- StrBufUrlescAppend(ReturnTo, WC->wc_roomname, NULL);
+ StrBufAppendBuf(ReturnTo, WC->wc_roomname, 0);
lprintf(9, "\e[32mwc_roomname: %s\e[0m\n", ChrPtr(WC->wc_roomname));
lprintf(9, "\e[31m ReturnTo: %s\e[0m\n", ChrPtr(ReturnTo));
do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, ChrPtr(ReturnTo), USERCONFIGROOM);
StrBufAppendBufPlain(WCC->ImportantMsg,
_("Aborting."),
-1, 0);
- /// todo: call the master dispatcher again...
+
if (!strcmp(bstr("return_to"), "select_user_to_edit")) {
select_user_to_edit(NULL);
}
else if (!strcmp(bstr("return_to"), "do_welcome")) {
do_welcome();
}
+ else if (!IsEmptyStr(bstr("return_to"))) {
+ http_redirect(bstr("return_to"));
+ }
else {
readloop(readnew);
}
else if (!strcmp(bstr("return_to"), "do_welcome")) {
do_welcome();
}
+ else if (!IsEmptyStr(bstr("return_to"))) {
+ http_redirect(bstr("return_to"));
+ }
else {
readloop(readnew);
}