]> code.citadel.org Git - citadel.git/blobdiff - webcit/wiki.c
* Created IsEmptyStr define to be used rather then using some weird strlen constructs
[citadel.git] / webcit / wiki.c
index 6c74212d5a8fded65120271c55f7d99f1d94c53d..40fe296fbbe0548c1d7aadb34f904e2d5fd6b295 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * $Id:  $
+ * $Id$
  */
 /**
  *
  * \defgroup Wiki Wiki; Functions pertaining to rooms with a wiki view
- *
+ * \ingroup WebcitDisplayItems
  */
 
 /*@{*/
@@ -51,7 +51,7 @@ 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)) {
@@ -77,7 +77,7 @@ void display_wiki_page(void)
                return;
        }
 
-       if (strlen(pagename) == 0) {
+       if (IsEmptyStr(pagename)) {
                strcpy(pagename, "home");
        }