Ignore:
Timestamp:
2010-03-06T17:10:32Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0714d51
Parents:
17f9522
Message:

Fixed up Yahoo! I'll have to do some more thorough testing of this code
since I may have broken something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r17f9522 r4049061  
    40874087}
    40884088
     4089/* TODO(wilmer): See if this this function still works since I got rid of a
     4090                 lot of things that seemed illogical. Some things may have
     4091                 been intentional. */
    40894092void yahoo_set_away(int id, enum yahoo_status state, const char *msg, int away)
    40904093{
     
    40994102
    41004103        yd = yid->yd;
    4101 
    41024104        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         }
     4105        yd->current_status = state;
    41094106
    41104107        /* Thank you libpurple :) */
     
    41214118        snprintf(s, sizeof(s), "%d", yd->current_status);
    41224119        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        
     4120        yahoo_packet_hash(pkt, 19, msg);
    41304121        yahoo_packet_hash(pkt, 47, (away == 2)? "2": (away) ?"1":"0");
    4131 
    41324122        yahoo_send_packet(yid, pkt, 0);
    41334123        yahoo_packet_free(pkt);
Note: See TracChangeset for help on using the changeset viewer.