X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Froomlist.c;h=129d60bc079b0141a5394046e877c7d014100047;hb=9a02a1c668813fd47f1b9d4d837e91789aa9840a;hp=5ade41ead4365c3069c5a69b2fe8577cc1ed3e6f;hpb=3841dfefb6b086720b6d5d9af39aaf8b19730e6d;p=citadel.git diff --git a/webcit/roomlist.c b/webcit/roomlist.c index 5ade41ead..129d60bc0 100644 --- a/webcit/roomlist.c +++ b/webcit/roomlist.c @@ -5,6 +5,7 @@ #include "webcit.h" #include "webserver.h" + HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP) { StrBuf *Line; @@ -12,7 +13,7 @@ HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP) long State; HashList *Whok = NULL; int Done = 0; - int n; + int n = 0; serv_puts("WHOK"); Line = NewStrBuf(); @@ -680,6 +681,9 @@ void InitModule_ROOMLIST (void) { + /* we duplicate this, just to be shure its already done. */ + RegisterCTX(CTX_ROOMS); + RegisterCTX(CTX_FLOORS); RegisterIterator("ITERATE:THISROOM:WHO_KNOWS", 0, NULL, GetWhoKnowsHash, NULL, DeleteHash, CTX_STRBUF, CTX_NONE, IT_NOFLAG); RegisterIterator("ITERATE:THISROOM:GNET", 1, NULL, GetNetConfigHash, NULL, NULL, CTX_STRBUFARR, CTX_NONE, IT_NOFLAG); @@ -692,7 +696,7 @@ InitModule_ROOMLIST - RegisterConditional(HKEY("COND:ROOM:REST:ISSUBROOM"), 0, ConditionalRoomIsRESTSubRoom, CTX_ROOMS); + RegisterConditional("COND:ROOM:REST:ISSUBROOM", 0, ConditionalRoomIsRESTSubRoom, CTX_ROOMS); RegisterSortFunc(HKEY("byfloorroom"), NULL, 0,