From c2e239fec5da0bfe1a0c8e009e3d49b4c8836146 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 30 Oct 2009 04:32:42 +0000 Subject: [PATCH] * Performing a 'fetch' operation on an old revision of a wiki page now stuffs the reverted version into a room called '9999999999.WikiWaybackMachine'. Due to the invalid namespace, the DAP will clean up after us later. --- citadel/modules/wiki/serv_wiki.c | 4 +++- citadel/room_ops.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/citadel/modules/wiki/serv_wiki.c b/citadel/modules/wiki/serv_wiki.c index af163f653..252e493be 100644 --- a/citadel/modules/wiki/serv_wiki.c +++ b/citadel/modules/wiki/serv_wiki.c @@ -542,7 +542,9 @@ void wiki_rev(char *pagename, char *rev, char *operation) msg->cm_fields['M'][len] = 0; fclose(fp); } - msgnum = CtdlSubmitMsg(msg, NULL, "Lobby", 0); /* FIXME put somewhere else */ + char *wwm = "9999999999.WikiWaybackMachine"; + CtdlCreateRoom(wwm, 5, "", 0, 1, 1, VIEW_BBS); + msgnum = CtdlSubmitMsg(msg, NULL, wwm, 0); /* FIXME put somewhere else */ CtdlFreeMessage(msg); cprintf("%d %ld\n", CIT_OK, msgnum); } diff --git a/citadel/room_ops.c b/citadel/room_ops.c index 42c67e758..5904b41eb 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -1820,7 +1820,7 @@ void cmd_kill(char *argbuf) /* * Internal code to create a new room (returns room flags) * - * Room types: 0=public, 1=guessname, 2=passworded, 3=inv-only, + * Room types: 0=public, 1=hidden, 2=passworded, 3=invitation-only, * 4=mailbox, 5=mailbox, but caller supplies namespace */ unsigned CtdlCreateRoom(char *new_room_name, -- 2.30.2