* move some more vars from the session context to strbuf (the use of StrBufAppendTemp...
[citadel.git] / webcit / floors.c
index 1b52c9aece5ed91bc01fcdae8e30e72042d8c61f..78227221b6f5353de6cd27b9ce667ae38894347c 100644 (file)
@@ -145,7 +145,7 @@ void delete_floor(void) {
        
        StrBufTCP_read_line(Buf, &WC->serv_sock, 0, &Err);
 
-       if (ChrPtr(Buf)[0] == '2') {
+       if (GetServerStatus(Buf, NULL) == 2) {
                StrBufPlain(Buf, _("Floor has been deleted."),-1);
        }
        else {
@@ -167,7 +167,7 @@ void create_floor(void) {
        serv_printf("CFLR %s|1", bstr("floorname"));
        StrBufTCP_read_line(Buf, &WC->serv_sock, 0, &Err);
 
-       if (ChrPtr(Buf)[0] == '2') {
+       if (GetServerStatus(Buf, NULL) == 2) {
                StrBufPlain(Buf, _("New floor has been created."),-1);
        }
        else {