Ignore:
Timestamp:
2010-03-07T18:41:45Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b52e478, fb020ac
Parents:
1c2eaa3 (diff), 0e99548 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging in improved away/status message code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r1c2eaa3 rc32f492  
    40994099
    41004100        yd = yid->yd;
    4101 
    41024101        old_status = yd->current_status;
    4103 
    4104         if (msg && strncmp(msg,"Invisible",9)) {
    4105                 yd->current_status = YAHOO_STATUS_CUSTOM;
    4106         } else {
    4107                 yd->current_status = state;
    4108         }
     4102        yd->current_status = state;
    41094103
    41104104        /* Thank you libpurple :) */
     
    41214115        snprintf(s, sizeof(s), "%d", yd->current_status);
    41224116        yahoo_packet_hash(pkt, 10, s);
    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        
     4117        yahoo_packet_hash(pkt, 19, msg && state == YAHOO_STATUS_CUSTOM ? msg : "");
    41304118        yahoo_packet_hash(pkt, 47, (away == 2)? "2": (away) ?"1":"0");
    4131 
    41324119        yahoo_send_packet(yid, pkt, 0);
    41334120        yahoo_packet_free(pkt);
Note: See TracChangeset for help on using the changeset viewer.