Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo.c @ 27167:e3150217e1b4
Turns out we need to exclude 'msn/' when authorizing a buddy.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 24 Jun 2009 08:15:22 +0000 |
parents | 76dda72a443b |
children | 463ed40d4031 |
comparison
equal
deleted
inserted
replaced
27166:76dda72a443b | 27167:e3150217e1b4 |
---|---|
1123 yahoo_buddy_add_authorize_cb(gpointer data) | 1123 yahoo_buddy_add_authorize_cb(gpointer data) |
1124 { | 1124 { |
1125 struct yahoo_add_request *add_req = data; | 1125 struct yahoo_add_request *add_req = data; |
1126 struct yahoo_packet *pkt; | 1126 struct yahoo_packet *pkt; |
1127 struct yahoo_data *yd = add_req->gc->proto_data; | 1127 struct yahoo_data *yd = add_req->gc->proto_data; |
1128 const char *who = add_req->who; | |
1129 | |
1130 if (add_req->protocol == 2) | |
1131 who += 4; | |
1128 | 1132 |
1129 pkt = yahoo_packet_new(YAHOO_SERVICE_AUTH_REQ_15, YAHOO_STATUS_AVAILABLE, 0); | 1133 pkt = yahoo_packet_new(YAHOO_SERVICE_AUTH_REQ_15, YAHOO_STATUS_AVAILABLE, 0); |
1130 yahoo_packet_hash(pkt, "ssiii", | 1134 yahoo_packet_hash(pkt, "ssiii", |
1131 1, add_req->id, | 1135 1, add_req->id, |
1132 5, add_req->who, | 1136 5, who, |
1133 241, add_req->protocol, | 1137 241, add_req->protocol, |
1134 13, 1, | 1138 13, 1, |
1135 334, 0); | 1139 334, 0); |
1136 yahoo_packet_send_and_free(pkt, yd); | 1140 yahoo_packet_send_and_free(pkt, yd); |
1137 | 1141 |