]> code.citadel.org Git - citadel.git/blobdiff - webcit/floors.c
* hunt down &'s that should be ?'s in URLs
[citadel.git] / webcit / floors.c
index 1b52c9aece5ed91bc01fcdae8e30e72042d8c61f..5397cd3195fe3a97b02d7135ff2b378210147c8c 100644 (file)
@@ -81,7 +81,7 @@ void display_floorconfig(StrBuf *prepend_html)
                        wprintf("</A></FONT><br />");
                }
                wprintf("<FONT SIZE=-1>"
-                       "<a href=\"display_editfloorpic&"
+                       "<a href=\"display_editfloorpic?"
                        "which_floor=%d\">", floornum);
                wprintf(_("(edit graphic)"));
                wprintf("</A></TD></TR></TABLE>");
@@ -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 {