changeset 1561:9fe7b059d2a5

[gaim-migrate @ 1571] fix a bad segfault. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 10 Mar 2001 23:12:20 +0000
parents 72235e3fcff6
children 12f16a852540
files plugins/yay/rxhandlers.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/yay/rxhandlers.c	Sat Mar 10 22:42:47 2001 +0000
+++ b/plugins/yay/rxhandlers.c	Sat Mar 10 23:12:20 2001 +0000
@@ -190,8 +190,13 @@
 	case YAHOO_SERVICE_LOGOFF:
 	case YAHOO_SERVICE_ISAWAY:
 	case YAHOO_SERVICE_ISBACK:
+		yahoo_parse_status(sess, pkt);
+		break;
 	case YAHOO_SERVICE_NEWCONTACT:
-		yahoo_parse_status(sess, pkt);
+		if (yahoo_makeint(pkt->msgtype) == 3)
+			yahoo_parse_message(sess, pkt);
+		else
+			yahoo_parse_status(sess, pkt);
 		break;
 	case YAHOO_SERVICE_IDACT:
 		CALLBACK(sess, YAHOO_HANDLE_ACTIVATE, pkt->content);