* ParsePref() was returning if it encountered a blank line in the preferences data...
authorArt Cancro <ajc@citadel.org>
Wed, 17 Jun 2009 21:26:18 +0000 (21:26 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 17 Jun 2009 21:26:18 +0000 (21:26 +0000)
webcit/auth.c
webcit/preferences.c
webcit/roomops.c

index d74f1ce6232c1c2d70d3d940244a6f764e832b82..2f023a5ecb31a7464b25d60bd29e21139d178fab 100644 (file)
@@ -148,7 +148,6 @@ void become_logged_in(const StrBuf *user, const StrBuf *pass, StrBuf *serv_respo
        Buf = NewStrBuf();
        serv_puts("CHEK");
        StrBuf_ServGetln(Buf);
-       lprintf(9, "%s:%d CHEK server reply: %s\n", __FILE__, __LINE__, ChrPtr(Buf));
        if (GetServerStatus(Buf, NULL) == 2) {
                const char *pch;
 
index af164ca46dfb9553e6baee33020923a89fe1472c..ac4fb3c483b4099e547591fe2f00c62059aa6954 100644 (file)
@@ -151,8 +151,8 @@ void ParsePref(HashList **List, StrBuf *ReadBuf)
        Preference *Data = NULL;
        Preference *LastData = NULL;
                                
-       while (!Done && StrBuf_ServGetln(ReadBuf))
-       {
+       while (!Done) {
+               StrBuf_ServGetln(ReadBuf);
                if ( (StrLength(ReadBuf)==3) && 
                     !strcmp(ChrPtr(ReadBuf), "000")) {
                        Done = 1;
index 546f5a04f05e5d8513fc736046e38d8ff5e82872..ed90e01fac27ce2aeac99981611c53e640689146 100644 (file)
@@ -801,8 +801,6 @@ long gotoroom(const StrBuf *gname)
        static long ls = (-1L);
        long err = 0;
 
-       lprintf(9, "%s:%d gotoroom(%s)\n", __FILE__, __LINE__, ChrPtr(gname));
-
        /* store ungoto information */
        strcpy(WC->ugname, ChrPtr(WC->wc_roomname));
        WC->uglsn = ls;
@@ -811,7 +809,6 @@ long gotoroom(const StrBuf *gname)
        /* move to the new room */
        serv_printf("GOTO %s", ChrPtr(gname));
        StrBuf_ServGetln(Buf);
-       lprintf(9, "%s:%d GOTO server reply: %s\n", __FILE__, __LINE__, ChrPtr(Buf));
        if  (GetServerStatus(Buf, &err) != 2) {
                serv_puts("GOTO _BASEROOM_");
                StrBuf_ServGetln(Buf);
@@ -832,7 +829,6 @@ long gotoroom(const StrBuf *gname)
                FlushStrBuf(WC->wc_roomname);
 
        StrBufExtract_token(WC->wc_roomname, Buf, 0, '|');
-       lprintf(9, "%s:%d extracted room name: %s\n", __FILE__, __LINE__, ChrPtr(WC->wc_roomname));
        StrBufCutLeft(WC->wc_roomname, 4);
        WC->room_flags = StrBufExtract_int(Buf, 4, '|');
        /* highest_msg_read = extract_int(&buf[4],6);
@@ -992,7 +988,6 @@ void gotonext(void)
  * goto next room
  */
 void smart_goto(const StrBuf *next_room) {
-       lprintf(9, "%s:%d smart_goto(%s)\n", __FILE__, __LINE__, ChrPtr(next_room));
        gotoroom(next_room);
        readloop(readnew);
 }
@@ -3888,7 +3883,6 @@ void _gotonext(void) {
 }
 
 void dotskip(void) {
-       lprintf(9, "%s:%d dotskip?room=%s\n", __FILE__, __LINE__, ChrPtr(sbstr("room")));
        smart_goto(sbstr("room"));
 }