# HG changeset patch # User Eric Warmenhoven # Date 988414938 0 # Node ID 2aab66c7a0077a2f3a96b042721f4529e97a3098 # Parent 1e0613d9526bd3a0ad5dfbcab16858b61d6d359c [gaim-migrate @ 1775] hi committer: Tailor Script diff -r 1e0613d9526b -r 2aab66c7a007 plugins/icq/gaim_icq.c --- 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, "%s", 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); } diff -r 1e0613d9526b -r 2aab66c7a007 plugins/jabber/jabber.c --- 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)); } /*