]> code.citadel.org Git - citadel.git/commitdiff
* serv_chat.c: fix send_express_message() to include timestamps
authorMichael Hampton <io_error@uncensored.citadel.org>
Mon, 27 Nov 2000 10:29:59 +0000 (10:29 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Mon, 27 Nov 2000 10:29:59 +0000 (10:29 +0000)
citadel/ChangeLog
citadel/serv_chat.c

index 9915257fff51f6fc51bdb6f9d83b5cd5a980817a..2c86c019dcacfdd97bc99926ad5123dda533350d 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 573.32  2000/11/27 10:29:59  error
+ * serv_chat.c: fix send_express_message() to include timestamps
+
  Revision 573.31  2000/11/27 03:44:27  ajc
  * Initial checkin of database_sleepycat.c (doesn't work yet)
 
@@ -2156,4 +2159,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
index 3d3419459266b4eea7426378cd355cc12ca19f51..20ba220ac1fca53f2552e63bc119fbfb0fb8f2be 100644 (file)
@@ -15,6 +15,9 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
 #include <sys/wait.h>
 #include <string.h>
 #include <limits.h>
@@ -487,6 +490,7 @@ int send_express_message(char *lun, char *x_user, char *x_msg)
                                        mallok(sizeof (struct ExpressMessage));
                                memset(newmsg, 0,
                                        sizeof (struct ExpressMessage));
+                               time(&(newmsg->timestamp));
                                safestrncpy(newmsg->sender, lun,
                                            sizeof newmsg->sender);
                                if (!strcasecmp(x_user, "broadcast"))