changeset 2667:9d537e5012c9

[gaim-migrate @ 2680] Howdy, Doody committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 02 Nov 2001 22:58:15 +0000
parents 511d2af5bcca
children f1d44505d66a
files src/protocols/yahoo/rxhandlers.c src/protocols/yahoo/yay.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/rxhandlers.c	Fri Nov 02 21:10:20 2001 +0000
+++ b/src/protocols/yahoo/rxhandlers.c	Fri Nov 02 22:58:15 2001 +0000
@@ -287,12 +287,13 @@
 		break;
 	case YAHOO_SERVICE_NEWCONTACT:
 		if (yahoo_makeint(pkt->msgtype) == 3) {
-			char **str_array = g_strsplit(pkt->content, ",,", 2);
+			char **str_array = g_strsplit(pkt->content, ",", 3);
 			if (sess->callbacks[YAHOO_HANDLE_BUDDYADDED].function)
 				(*sess->callbacks[YAHOO_HANDLE_BUDDYADDED].function)(sess,
 										     pkt->nick2,
 										     str_array[0],
-										     str_array[1]);
+										     atol(str_array[1]),
+										     str_array[2]);
 			g_strfreev(str_array);
 		} else
 			yahoo_parse_status(sess, pkt);
--- a/src/protocols/yahoo/yay.c	Fri Nov 02 21:10:20 2001 +0000
+++ b/src/protocols/yahoo/yay.c	Fri Nov 02 22:58:15 2001 +0000
@@ -173,11 +173,13 @@
 static int yahoo_buddyadded(struct yahoo_session *sess, ...) {
 	va_list ap;
 	char *id;
+	time_t t;
 	char *who;
 	char *msg;
 
 	va_start(ap, sess);
 	id = va_arg(ap, char *);
+	t = va_arg(ap, time_t);
 	who = va_arg(ap, char *);
 	msg = va_arg(ap, char *);
 	va_end(ap);