]> code.citadel.org Git - citadel.git/blobdiff - webcit/who.c
* upgrade hash retriever function, it now takes the usual cloud of parameters as...
[citadel.git] / webcit / who.c
index 0cc06bc8adeead255652e3b6481d37f5e6a7ebac..5b011690d1d73f80f078322b9b0758574a180009 100644 (file)
@@ -231,6 +231,7 @@ void who_inner_div(void) {
 */
 
 
+#if 0
 /*
  * Display a list of users currently logged in to the system
  * /
@@ -246,6 +247,7 @@ void who(void)
                "}\n"
                "</script>\n", _("Do you really want to kill this session?")
        );
+#endif
 
        wprintf("<div id=\"banner\">\n");
        wprintf("<div class=\"room_banner\">");
@@ -294,6 +296,7 @@ void who(void)
        wDumpContent(1);
 }
 */
+#endif
 
 /*
  * end session
@@ -444,7 +447,7 @@ void _terminate_session(void) {
        terminate_session();
 }
 
-HashList *GetWholistHash(WCTemplateToken *Token)
+HashList *GetWholistHash(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
 {
        HashList *List;
        char buf[SIZ];
@@ -496,5 +499,5 @@ InitModule_WHO
        WebcitAddUrlHandler(HKEY("terminate_session"), _terminate_session, 0);
        WebcitAddUrlHandler(HKEY("edit_me"), edit_me, 0);
 
-       RegisterIterator("WHOLIST", 0, NULL, GetWholistHash, WholistSubst, DeleteWholistHash);
+       RegisterIterator("WHOLIST", 0, NULL, GetWholistHash, WholistSubst, DeleteWholistHash, CTX_WHO);
 }