changeset 1765:2aab66c7a007

[gaim-migrate @ 1775] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 27 Apr 2001 23:42:18 +0000
parents 1e0613d9526b
children a247305b835f
files plugins/icq/gaim_icq.c plugins/jabber/jabber.c
diffstat 2 files changed, 44 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/icq/gaim_icq.c	Fri Apr 27 23:26:19 2001 +0000
+++ b/plugins/icq/gaim_icq.c	Fri Apr 27 23:42:18 2001 +0000
@@ -123,10 +123,19 @@
 			unsigned char day, unsigned char month, unsigned short year, const char *data) {
 	struct gaim_connection *gc = find_gaim_conn_by_icq_link(link);
 	char buf[256], *tmp = g_malloc(BUF_LONG);
+	struct tm t;
+	time_t e;
 	g_snprintf(tmp, BUF_LONG, "%s", data);
 	g_snprintf(buf, sizeof buf, "%lu", uin);
-	/* FIXME EWIC */
-	serv_got_im(gc, buf, tmp, 0, time((time_t)NULL));
+	time(&e);
+	t.tm_sec = e % 60; /* suuuuurrrre.... */
+	t.tm_min = minute;
+	t.tm_hour = hour;
+	t.tm_mday = day;
+	t.tm_mon = month;
+	t.tm_year = year;
+	e = mktime(&t);
+	serv_got_im(gc, buf, tmp, 0, e);
 	g_free(tmp);
 }
 
@@ -179,10 +188,19 @@
 				unsigned short year, const char *url, const char *descr) {
 	struct gaim_connection *gc = find_gaim_conn_by_icq_link(link);
 	char *msg = g_malloc(BUF_LONG), buf[256];
+	struct tm t;
+	time_t e;
 	g_snprintf(msg, BUF_LONG, "<A HREF=\"%s\">%s</A>", url, descr);
 	g_snprintf(buf, 256, "%lu", uin);
-	/* FIXME EWIC */
-	serv_got_im(gc, buf, msg, 0, time((time_t)NULL));
+	time(&e);
+	t.tm_sec = e % 60; /* suuuuurrrre.... */
+	t.tm_min = minute;
+	t.tm_hour = hour;
+	t.tm_mday = day;
+	t.tm_mon = month;
+	t.tm_year = year;
+	e = mktime(&t);
+	serv_got_im(gc, buf, msg, 0, e);
 	g_free(msg);
 }
 
@@ -220,9 +238,18 @@
 	struct gaim_connection *gc = find_gaim_conn_by_icq_link(link);
 	char *who = g_strdup_printf("ICQ Web Pager: %s (%s)", nick, email);
 	char *what = g_malloc(BUF_LONG);
+	struct tm t;
+	time_t e;
 	g_snprintf(what, BUF_LONG, "%s", msg);
-	/* FIXME EWIC */
-	serv_got_im(gc, who, what, 0, time((time_t)NULL));
+	time(&e);
+	t.tm_sec = e % 60; /* suuuuurrrre.... */
+	t.tm_min = minute;
+	t.tm_hour = hour;
+	t.tm_mday = day;
+	t.tm_mon = month;
+	t.tm_year = year;
+	e = mktime(&t);
+	serv_got_im(gc, who, what, 0, e);
 	g_free(who);
 	g_free(what);
 }
@@ -233,9 +260,18 @@
 	struct gaim_connection *gc = find_gaim_conn_by_icq_link(link);
 	char *who = g_strdup_printf("ICQ Mail Express: %s (%s)", nick, email);
 	char *what = g_malloc(BUF_LONG);
+	struct tm t;
+	time_t e;
 	g_snprintf(what, BUF_LONG, "%s", msg);
-	/* FIXME EWIC */
-	serv_got_im(gc, who, what, 0, time((time_t)NULL));
+	time(&e);
+	t.tm_sec = e % 60; /* suuuuurrrre.... */
+	t.tm_min = minute;
+	t.tm_hour = hour;
+	t.tm_mday = day;
+	t.tm_mon = month;
+	t.tm_year = year;
+	e = mktime(&t);
+	serv_got_im(gc, who, what, 0, e);
 	g_free(who);
 	g_free(what);
 }
--- a/plugins/jabber/jabber.c	Fri Apr 27 23:26:19 2001 +0000
+++ b/plugins/jabber/jabber.c	Fri Apr 27 23:42:18 2001 +0000
@@ -509,7 +509,6 @@
 			}
 
 			g_snprintf(m, sizeof(m), "%s", msg);
-			/* FIXME EWIC */
 			serv_got_im(GJ_GC(j), from, m, 0, time((time_t)NULL));
 
 			if (!same)
@@ -568,7 +567,6 @@
 			} else if (msg) {
 				char buf[8192];
 				g_snprintf(buf, sizeof(buf), "%s", msg);
-				/* FIXME EWIC */
 				serv_got_chat_in(GJ_GC(j), b->id, p->from->resource, 0, buf, time((time_t)NULL));
 			}
 		/*