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