From: <rl...@us...> - 2006-04-24 20:15:37
|
Revision: 16089 Author: rlaager Date: 2006-04-24 13:15:34 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16089&view=rev Log Message: ----------- SF Patch #1470203 from Sadrul "If someone (using gaim, not sure about any other) on my buddy-list is away on yahoo, and goes idle, then there's a status-changed signal emitted saying that the buddy changed status to "available" -- which is not correct." "Also, when you have a status-message, and become idle, the status-message for that gets lost. This apparently was caused by my last patch." Modified Paths: -------------- trunk/src/protocols/yahoo/yahoo.c Modified: trunk/src/protocols/yahoo/yahoo.c =================================================================== --- trunk/src/protocols/yahoo/yahoo.c 2006-04-24 20:05:48 UTC (rev 16088) +++ trunk/src/protocols/yahoo/yahoo.c 2006-04-24 20:15:34 UTC (rev 16089) @@ -153,14 +153,12 @@ status = YAHOO_STATUS_TYPE_INVISIBLE; break; case YAHOO_STATUS_CUSTOM: + case YAHOO_STATUS_IDLE: if (!f->away) status = YAHOO_STATUS_TYPE_AVAILABLE; else status = YAHOO_STATUS_TYPE_AWAY; break; - case YAHOO_STATUS_IDLE: - status = YAHOO_STATUS_TYPE_AVAILABLE; - break; default: gaim_debug_warning("yahoo", "Warning, unknown status %d\n", f->status); break; @@ -3237,7 +3235,7 @@ char *msg = NULL, *msg2 = NULL; GaimStatus *status = NULL; - if (idle && yd->current_status != YAHOO_STATUS_IDLE) + if (idle && yd->current_status != YAHOO_STATUS_CUSTOM) yd->current_status = YAHOO_STATUS_IDLE; else if (!idle && yd->current_status == YAHOO_STATUS_IDLE) { status = gaim_presence_get_active_status(gaim_account_get_presence(gaim_connection_get_account(gc))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |