set_roomflags (&RoomFlags);
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
}
if (!havebstr("ok_button")) {
strcpy(WC->ImportantMessage,
_("Cancelled. Changes were not saved."));
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
serv_puts("GETR");
if (GetServerStatus(Buf, NULL) != 2) {
StrBufCutLeft(Buf, 4);
strcpy(WC->ImportantMessage, ChrPtr(Buf));
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
FreeStrBuf(&Buf);
return;
}
StrBuf_ServGetln(Buf);
if (GetServerStatus(Buf, NULL) != 2) {
strcpy(WC->ImportantMessage, &ChrPtr(Buf)[4]);
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
FreeStrBuf(&Buf);
FreeStrBuf(&er_name);
FreeStrBuf(&er_password);
}
gotoroom(er_name);
strcpy(WC->ImportantMessage, _("Your changes have been saved."));
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
FreeStrBuf(&Buf);
FreeStrBuf(&er_name);
FreeStrBuf(&er_password);
}
}
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
}
WCC->CurRoom.view = er_view;
if ( (WCC != NULL) && ( (WCC->CurRoom.RAFlags & UA_ADMINALLOWED) != 0) ) {
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
} else {
do_change_view(er_view); /* Now go there */
}
strcat(line, bstr("suffix"));
}
else {
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
fp = tmpfile();
if (fp == NULL) {
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
serv_getln(buf, sizeof buf);
if (buf[0] != '1') {
fclose(fp);
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
serv_getln(buf, sizeof buf);
if (buf[0] != '4') {
fclose(fp);
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
serv_puts("000");
fclose(fp);
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
}
if (!havebstr("ok_button")) {
strcpy(WC->ImportantMessage,
_("Cancelled. Changes were not saved."));
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
return;
}
strcat(WC->ImportantMessage, &buf[4]);
}
- do_template("room_edit", NULL);
+ http_transmit_thing(ChrPtr(do_template("room_edit", NULL)), 0);
}
void tmplput_RoomName(StrBuf *Target, WCTemplputParams *TP)