# HG changeset patch # User Eric Warmenhoven # Date 987818378 0 # Node ID 82c824fe018e3e0196561c83c7c537a9c9ec9821 # Parent 4f3448b3c8f89591e76c969bf64a32b212f16499 [gaim-migrate @ 1747] be able to handle offline messages. should make it so that they have the correct timestamp, but eh. that'll have to come later, when the UI can handle it. committer: Tailor Script diff -r 4f3448b3c8f8 -r 82c824fe018e plugins/yay/rxhandlers.c --- a/plugins/yay/rxhandlers.c Sat Apr 21 01:25:30 2001 +0000 +++ b/plugins/yay/rxhandlers.c Sat Apr 21 01:59:38 2001 +0000 @@ -170,10 +170,12 @@ char **str_array; switch(type) { case YAHOO_MESSAGE_NORMAL: - str_array = g_strsplit(pkt->content, ",,", 2); + str_array = g_strsplit(pkt->content, ",", 3); if (sess->callbacks[YAHOO_HANDLE_MESSAGE].function) (*sess->callbacks[YAHOO_HANDLE_MESSAGE].function)(sess, pkt->nick2, - str_array[0], str_array[1]); + str_array[0], + atol(str_array[1]), + str_array[2]); g_strfreev(str_array); break; case YAHOO_MESSAGE_BOUNCE: diff -r 4f3448b3c8f8 -r 82c824fe018e plugins/yay/yay.c --- a/plugins/yay/yay.c Sat Apr 21 01:25:30 2001 +0000 +++ b/plugins/yay/yay.c Sat Apr 21 01:59:38 2001 +0000 @@ -135,6 +135,7 @@ struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; char buf[BUF_LEN * 4]; char *tmp, *c, *e; + time_t tm; int at = 0; va_list ap; @@ -143,6 +144,7 @@ va_start(ap, sess); id = va_arg(ap, char *); nick = va_arg(ap, char *); + tm = va_arg(ap, time_t); msg = va_arg(ap, char *); va_end(ap);