]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
* going to 00000 doesn't refresh our state, it just gives us an error.
[citadel.git] / webcit / roomops.c
index 9fe1dcc27b4bd28296577c466893b651f95af092..ab398c69b5e1c534457918812bb72a14f0651f2f 100644 (file)
@@ -264,7 +264,7 @@ void embed_room_banner(void)
        char buf[256];
 
        /* refresh current room states... */
-       gotoroom(NULL);
+       /* dosen't work??? gotoroom(NULL); */
 
        /* The browser needs some information for its own use */
        wc_printf("<script type=\"text/javascript\">    \n"
@@ -581,7 +581,7 @@ long gotoroom(const StrBuf *gname)
        if (StrLength(gname) > 0)
                serv_printf("GOTO %s", ChrPtr(gname));
        else /* or just refresh the current state... */
-               serv_printf("GOTO");
+               serv_printf("GOTO 00000000000000000000");
        StrBuf_ServGetln(Buf);
        if  (GetServerStatus(Buf, &err) != 2) {
                serv_puts("GOTO _BASEROOM_");
@@ -3441,7 +3441,6 @@ HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP)
 
        serv_puts("WHOK");
        Line = NewStrBuf();
-       Token = NewStrBuf();
        StrBuf_ServGetln(Line);
        if (GetServerStatus(Line, &State) == 1) 
        {
@@ -3470,6 +3469,7 @@ HashList *GetWhoKnowsHash(StrBuf *Target, WCTemplputParams *TP)
                                     _("Higher access is required to access this function."), -1, 0);
 
 
+       FreeStrBuf(&Line);
        return Whok;
 }