Mercurial > pidgin
comparison plugins/timestamp.c @ 6982:083d1e4a9c78
[gaim-migrate @ 7538]
This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He
rewrote the coreish IM image support so that the binary data gets
ripped out in the prpl and put in an imgstore instead of just being
passed in the same huge as char string as the actual message. This
is good because it's prpl agnostic, or something. It also means
we don't have a silly length of "-1" with pretty much every send or
receive IM function.
It should be crash free, bug free, and memleak free, but additional
testing is always a good thing.
If you like good stuff then you'll love this patch. But don't take
my word for it--ba dun dunt!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 27 Sep 2003 19:17:21 +0000 |
parents | 42fdf16f1dad |
children | 5b94ddd51aa1 |
comparison
equal
deleted
inserted
replaced
6981:abd3c684da31 | 6982:083d1e4a9c78 |
---|---|
30 if (!g_list_find(gaim_get_conversations(), c)) | 30 if (!g_list_find(gaim_get_conversations(), c)) |
31 return FALSE; | 31 return FALSE; |
32 | 32 |
33 strftime(mdate, sizeof(mdate), "%H:%M", localtime(&tim)); | 33 strftime(mdate, sizeof(mdate), "%H:%M", localtime(&tim)); |
34 buf = g_strdup_printf(" %s", mdate); | 34 buf = g_strdup_printf(" %s", mdate); |
35 gaim_conversation_write(c, NULL, buf, -1, GAIM_MESSAGE_NO_LOG, tim); | 35 gaim_conversation_write(c, NULL, buf, GAIM_MESSAGE_NO_LOG, tim); |
36 g_free(buf); | 36 g_free(buf); |
37 return TRUE; | 37 return TRUE; |
38 } | 38 } |
39 | 39 |
40 static void timestamp_new_convo(GaimConversation *conv) | 40 static void timestamp_new_convo(GaimConversation *conv) |