changeset 1737:82c824fe018e

[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 <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 21 Apr 2001 01:59:38 +0000
parents 4f3448b3c8f8
children bcd7f80f0086
files plugins/yay/rxhandlers.c plugins/yay/yay.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- 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);