]> code.citadel.org Git - citadel.git/blobdiff - webcit/who.c
* put filename reference into token, so we can put in errormessages where we wouldn...
[citadel.git] / webcit / who.c
index 0d78dee59eef68f95747068f6c467d80b0d5af95..bd863e7eee30fcee8f95e1fbc9a33402b04c36eb 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];
@@ -481,9 +484,9 @@ void WholistSubst(StrBuf *TemplBuffer, void *vContext, WCTemplateToken *Token)
        svputlong("WHO:ISME", (User->Session == WC->ctdl_pid));
 }
 
-void DeleteWholistHash(HashList *KillMe)
+void DeleteWholistHash(HashList **KillMe)
 {
-       DeleteHash(&KillMe);
+       DeleteHash(KillMe);
 }
 
 void 
@@ -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, CTX_NONE);
 }