/*
- * $Id: $
- */
-/**
- *
- * \defgroup Wiki Wiki; Functions pertaining to rooms with a wiki view
+ * $Id$
*
+ * Functions pertaining to rooms with a wiki view
*/
-/*@{*/
#include "webcit.h"
#include "groupdav.h"
-
-
-/**
- * \brief Convert a string to something suitable as a wiki index
- *
- * \param s The string to be converted.
+/*
+ * Convert a string to something suitable as a wiki index
*/
void str_wiki_index(char *s)
{
}
}
-/**
- * \brief Display a specific page from a wiki room
+/*
+ * Display a specific page from a wiki room
*/
void display_wiki_page(void)
{
safestrncpy(pagename, bstr("page"), sizeof pagename);
str_wiki_index(pagename);
- if (strlen(roomname) > 0) {
+ if (!IsEmptyStr(roomname)) {
/* If we're not in the correct room, try going there. */
if (strcasecmp(roomname, WC->wc_roomname)) {
return;
}
- if (strlen(pagename) == 0) {
+ if (IsEmptyStr(pagename)) {
strcpy(pagename, "home");
}
wDumpContent(1);
}
-
-/** @} */
+void
+InitModule_WIKI
+(void)
+{
+ WebcitAddUrlHandler(HKEY("wiki"), display_wiki_page, 0);
+ return ;
+}