changeset 2455:50163c916f9d

[gaim-migrate @ 2468] this should fix many things. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 09 Oct 2001 01:38:16 +0000
parents 64e20158271e
children 308f010ed664
files src/protocols/yahoo/outgoing.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/outgoing.c	Tue Oct 09 01:26:17 2001 +0000
+++ b/src/protocols/yahoo/outgoing.c	Tue Oct 09 01:38:16 2001 +0000
@@ -49,7 +49,7 @@
 	struct yahoo_packet *pkt;
 	int ret;
 
-	if (!session || !conn)
+	if (!session || !session->login || !conn || !active_id)
 		return 0;
 
 	if (!(pkt = g_new0(struct yahoo_packet, 1)))
@@ -151,6 +151,9 @@
 	if (!session)
 		return 0;
 
+	if (!session->login)
+		return 0;
+
 	if (!(conn = yahoo_getconn_type(session, YAHOO_CONN_TYPE_MAIN)))
 		return 0;