changeset 26148:7446f0597150

Dont try connecting to those on sms or offline.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 22 Aug 2008 20:25:56 +0000
parents 4e378c8b5c49
children 775752f3e0db
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Fri Aug 22 19:27:31 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Aug 22 20:25:56 2008 +0000
@@ -2650,6 +2650,10 @@
 	if(f->protocol)
 		return;
 
+	/* Finally, don't try to connect to buddies not online or on sms */
+	if( (f->status == YAHOO_STATUS_OFFLINE) || f->sms )
+		return;
+
 	public_ip = purple_network_get_public_ip();
 	if( (sscanf(public_ip, "%u.%u.%u.%u", &temp[0], &temp[1], &temp[2], &temp[3])) !=4 )
 		return ;