* create function to parse the output of goto into our folder structure
[citadel.git] / webcit / paging.c
index 1ee2782b712aec5671ae8ce1911d9d5c31e4e2c5..bb6ad8e2f9774f6593dc56aeeeb425b68b4003e2 100644 (file)
@@ -103,7 +103,7 @@ void do_chat(void)
        char buf[SIZ];
 
        /** First, check to make sure we're still allowed in this room. */
-       serv_printf("GOTO %s", ChrPtr(WC->wc_roomname));
+       serv_printf("GOTO %s", ChrPtr(WC->CurRoom.name));
        serv_getln(buf, sizeof buf);
        if (buf[0] != '2') {
                StrBuf *Buf;
@@ -198,7 +198,7 @@ int setup_chat_socket(void) {
                                serv_printf("PASS %s", ChrPtr(WC->wc_password));
                                serv_getln(buf, sizeof buf);
                                if (buf[0] == '2') {
-                                       serv_printf("GOTO %s", ChrPtr(WC->wc_roomname));
+                                       serv_printf("GOTO %s", ChrPtr(WC->CurRoom.name));
                                        serv_getln(buf, sizeof buf);
                                        if (buf[0] == '2') {
                                                serv_puts("CHAT");