* WebCit now sends the name of the end user's browser as the client
authorArt Cancro <ajc@citadel.org>
Sat, 29 May 1999 05:01:12 +0000 (05:01 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 29 May 1999 05:01:12 +0000 (05:01 +0000)
          name in a Citadel IDEN command rather than its own name.

webcit/ChangeLog
webcit/child.h
webcit/roomops.c
webcit/serv_func.c
webcit/webcit.c

index d57b18577cbda849386bbb354d1beb25ce2ee1a9..98093203a0880e45a1755eb3d573c3eda9ce0968 100644 (file)
@@ -3,6 +3,8 @@ Sat May 29 00:25:47 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
          the transition back to the Lobby after it's all done.
        * Added ExpressMessageCat() to allow code to send the user messages
          along with incoming express messages
+       * WebCit now sends the name of the end user's browser as the client
+         name in a Citadel IDEN command rather than its own name.
 
 Fri May 21 23:35:17 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Minor code cleanups
index 5079e1d14bd37391528c70a63772d0d85d153052..d698e36f3f86050376086664ad75e81fd26e9f1b 100644 (file)
@@ -15,7 +15,7 @@ void list_all_rooms_by_floor(void);
 void slrp_highest(void);
 void gotonext(void);
 void ungoto(void);
-void get_serv_info(char *);
+void get_serv_info(char *, char *);
 int connectsock(char *host, char *service, char *protocol);
 void serv_gets(char *strbuf);
 void serv_puts(char *string);
index e2a43bbeabfcada2fba0aa23a2ddb314aae0289e..6d853ebdedc111f0939690d73cdc3059f7f8f8db 100644 (file)
@@ -366,7 +366,7 @@ void embed_room_banner(char *got) {
        wprintf("</FONT></TD>");
 
        /* Let the user know if new mail has arrived */
-       if (new_mail > remember_new_mail) {
+       if ( (new_mail > remember_new_mail) && (new_mail>0) ) {
                wprintf("<TD VALIGN=TOP>"
                        "<IMG SRC=\"/static/mail.gif\" border=0 "
                        "ALT=\"You have new mail\">"
index 686dcc1bbe47ce01a1d3437278f500cfd1056932..823fb5f85db67eaee12286a66d621c6916e0ecfe 100644 (file)
@@ -15,18 +15,18 @@ struct serv_info serv_info;
 /*
  * get info about the server we've connected to
  */
-void get_serv_info(char *browser_host)
+void get_serv_info(char *browser_host, char *user_agent)
 {
        char buf[256];
        int a;
 
        serv_printf("IDEN %d|%d|%d|%s|%s",
-                   DEVELOPER_ID,
-                   CLIENT_ID,
-                   CLIENT_VERSION,
-                   SERVER,
-                   browser_host
-           );
+               DEVELOPER_ID,
+               CLIENT_ID,
+               CLIENT_VERSION,
+               user_agent,
+               browser_host
+       );
        serv_gets(buf);
 
        serv_puts("INFO");
index 9b56b7376ca3416f25ff2ab5938a788f00d94e17..0f577f5c036daea6377a5bf2004b9a160e4f5fdc 100644 (file)
@@ -606,7 +606,7 @@ void upload_handler(char *name, char *filename, char *encoding,
 }
 
 
-void session_loop(char *browser_host)
+void session_loop(char *browser_host, char *user_agent)
 {
        char cmd[256];
        char action[256];
@@ -698,7 +698,7 @@ void session_loop(char *browser_host)
                serv_sock = connectsock(c_host, c_port, "tcp");
                connected = 1;
                serv_gets(buf); /* get the server welcome message */
-               get_serv_info(browser_host);
+               get_serv_info(browser_host, user_agent);
        }
        check_for_express_messages();
 
@@ -956,6 +956,6 @@ int main(int argc, char *argv[])
                noframes = 0;
 
        while (1) {
-               session_loop(argv[4]);
+               session_loop(argv[4], browser);
        }
 }