Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    rbe915f5 rccba980  
    40994099
    41004100        yd = yid->yd;
     4101
    41014102        old_status = yd->current_status;
    4102         yd->current_status = state;
     4103
     4104        if (msg && strncmp(msg,"Invisible",9)) {
     4105                yd->current_status = YAHOO_STATUS_CUSTOM;
     4106        } else {
     4107                yd->current_status = state;
     4108        }
    41034109
    41044110        /* Thank you libpurple :) */
     
    41154121        snprintf(s, sizeof(s), "%d", yd->current_status);
    41164122        yahoo_packet_hash(pkt, 10, s);
    4117         yahoo_packet_hash(pkt, 19, msg && state == YAHOO_STATUS_CUSTOM ? msg : "");
     4123         
     4124        if (yd->current_status == YAHOO_STATUS_CUSTOM) {
     4125                yahoo_packet_hash(pkt, 19, msg);
     4126        } else {
     4127                yahoo_packet_hash(pkt, 19, "");
     4128        }
     4129       
    41184130        yahoo_packet_hash(pkt, 47, (away == 2)? "2": (away) ?"1":"0");
     4131
    41194132        yahoo_send_packet(yid, pkt, 0);
    41204133        yahoo_packet_free(pkt);
Note: See TracChangeset for help on using the changeset viewer.