diff src/buddy_chat.c @ 1764:1e0613d9526b

[gaim-migrate @ 1774] I decided to do the time stamp w/ messages thing that Eric put in the TODO list. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 27 Apr 2001 23:26:19 +0000
parents 3dfe4aefd366
children d7cbedd1d651
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Apr 27 22:21:53 2001 +0000
+++ b/src/buddy_chat.c	Fri Apr 27 23:26:19 2001 +0000
@@ -345,7 +345,7 @@
 		return FALSE;
 }
 
-void chat_write(struct conversation *b, char *who, int flag, char *message)
+void chat_write(struct conversation *b, char *who, int flag, char *message, time_t mtime)
 {
 	GList *ignore = b->ignored;
 	char *str;
@@ -377,7 +377,7 @@
 		g_free(str);
 	}
 
-	write_to_conv(b, message, flag, who);
+	write_to_conv(b, message, flag, who, mtime);
 }
 
 
@@ -411,7 +411,7 @@
 
 	g_snprintf(buf2, sizeof(buf2), "%s->%s", b->gc->username, who);
 
-	chat_write(b, buf2, WFLAG_WHISPER, buf);
+	chat_write(b, buf2, WFLAG_WHISPER, buf, time((time_t)NULL));
 
 	gtk_widget_grab_focus(GTK_WIDGET(b->entry));
 
@@ -542,7 +542,7 @@
 
 	if (display_options & OPT_DISP_CHAT_LOGON) {
 		g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), name);
-		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL);
+		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time((time_t)NULL));
 	}
 }
 
@@ -605,7 +605,7 @@
 
 	if (display_options & OPT_DISP_CHAT_LOGON) {
 		g_snprintf(tmp, sizeof(tmp), _("%s is now known as %s"), old, new);
-		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL);
+		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time((time_t)NULL));
 	}
 }
 
@@ -648,7 +648,7 @@
 
 	if (display_options & OPT_DISP_CHAT_LOGON) {
 		g_snprintf(tmp, sizeof(tmp), _("%s left the room."), buddy);
-		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL);
+		write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time((time_t)NULL));
 	}
 }