diff src/protocols/oscar/oscar.c @ 2856:b1e300a85678

[gaim-migrate @ 2869] rewrote the html parser in gtkimhtml. yes, that's really all i did. the reason for the massive change is because i added a length argument, which then needed to be propogated down to everything that would ever receive anything that would get drawn to the window. the new parser isn't any faster. that wasn't my goal. it's much more understandable now (hopefully, anyway). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 08 Dec 2001 09:48:52 +0000
parents cdbe6e2f0ff2
children e22c09351e67
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sat Dec 08 08:46:00 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Sat Dec 08 09:48:52 2001 +0000
@@ -304,7 +304,7 @@
 
 	g_snprintf(buf, sizeof buf, _("Direct IM with %s closed"), sn);
 	if ((cnv = find_conversation(sn)))
-		write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time((time_t)NULL));
+		write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time(NULL), -1);
 
 	g_free(dim); /* I guess? I don't see it anywhere else... -- mid */
 	g_free(sn);
@@ -1202,7 +1202,7 @@
 	if (!(cnv = find_conversation(dim->name))) 
 		cnv = new_conversation(dim->name);
 	g_snprintf(buf, sizeof buf, _("Direct IM with %s established"), dim->name);
-	write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time((time_t)NULL));
+	write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time(NULL), -1);
 
 	od->direct_ims = g_slist_append(od->direct_ims, dim);
 
@@ -1342,7 +1342,7 @@
 		g_snprintf(tmp, BUF_LONG, "%s", args->msg);
 
 	strip_linefeed(tmp);
-	serv_got_im(gc, userinfo->sn, tmp, flags, time(NULL));
+	serv_got_im(gc, userinfo->sn, tmp, flags, time(NULL), -1);
 	g_free(tmp);
 
 	return 1;
@@ -2070,7 +2070,7 @@
 		time_t t = get_time(msg->year, msg->month, msg->day, msg->hour, msg->minute, 0);
 		g_snprintf(sender, sizeof(sender), "%lu", msg->sender);
 		strip_linefeed(tmp);
-		serv_got_im(gc, sender, tmp, 0, t);
+		serv_got_im(gc, sender, tmp, 0, t, -1);
 		g_free(tmp);
 	} else {
 		debug_printf("unknown offline message type 0x%04x\n", msg->type);
@@ -2640,7 +2640,7 @@
 					oscar_callback, dim->conn);
 	g_snprintf(buf, sizeof buf, _("Direct IM with %s established"), sn);
 	g_free(sn);
-	write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time((time_t)NULL));
+	write_to_conv(cnv, buf, WFLAG_SYSTEM, NULL, time(NULL), -1);
 
 	aim_conn_addhandler(sess, newconn, AIM_CB_FAM_OFT, AIM_CB_OFT_DIRECTIMINCOMING,
 				gaim_directim_incoming, 0);
@@ -2662,7 +2662,7 @@
 
 	debug_printf("Got DirectIM message from %s\n", sn);
 
-	serv_got_im(gc, sn, msg, 0, time((time_t)NULL));
+	serv_got_im(gc, sn, msg, 0, time(NULL), -1);
 
 	return 1;
 }