- Timestamp:
- 2010-03-06T18:19:31Z (15 years ago)
- Branches:
- master
- Children:
- 34fbbf9
- Parents:
- 0714d51
- Location:
- protocols/yahoo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/libyahoo2.c
r0714d51 rbe915f5 4087 4087 } 4088 4088 4089 /* TODO(wilmer): See if this this function still works since I got rid of a4090 lot of things that seemed illogical. Some things may have4091 been intentional. */4092 4089 void yahoo_set_away(int id, enum yahoo_status state, const char *msg, int away) 4093 4090 { … … 4118 4115 snprintf(s, sizeof(s), "%d", yd->current_status); 4119 4116 yahoo_packet_hash(pkt, 10, s); 4120 yahoo_packet_hash(pkt, 19, msg );4117 yahoo_packet_hash(pkt, 19, msg && state == YAHOO_STATUS_CUSTOM ? msg : ""); 4121 4118 yahoo_packet_hash(pkt, 47, (away == 2)? "2": (away) ?"1":"0"); 4122 4119 yahoo_send_packet(yid, pkt, 0); -
protocols/yahoo/yahoo.c
r0714d51 rbe915f5 200 200 struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data; 201 201 202 if( state ) 203 { 202 if( state && msg == NULL ) 203 { 204 /* Use these states only if msg doesn't contain additional 205 info since away messages are only supported with CUSTOM. */ 204 206 if( g_strcasecmp( state, "Be Right Back" ) == 0 ) 205 207 yd->current_status = YAHOO_STATUS_BRB; … … 225 227 yd->current_status = YAHOO_STATUS_CUSTOM; 226 228 } 229 else if( state ) 230 yd->current_status = YAHOO_STATUS_CUSTOM; 227 231 else 228 232 yd->current_status = YAHOO_STATUS_AVAILABLE;
Note: See TracChangeset
for help on using the changeset viewer.