[gaim-migrate @ 1747]

Sat, 21 Apr 2001 01:59:38 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sat, 21 Apr 2001 01:59:38 +0000
changeset 1737
f690fef34a91
parent 1736
19469c21a554
child 1738
55e9decd97d6

[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.

plugins/yay/rxhandlers.c file | annotate | diff | comparison | revisions
plugins/yay/yay.c file | annotate | diff | comparison | revisions
--- 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);
 

mercurial