Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo_friend.c @ 31534:a8cc50c2279f
Remove trailing whitespace
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 04 Jan 2011 06:55:30 +0000 |
parents | d1cecbc467c6 |
children | fcf841ffd620 |
comparison
equal
deleted
inserted
replaced
31533:44f53d3fc54f | 31534:a8cc50c2279f |
---|---|
150 YahooFriend *f; | 150 YahooFriend *f; |
151 char *temp = NULL; | 151 char *temp = NULL; |
152 char *who = NULL; | 152 char *who = NULL; |
153 int value = 0; | 153 int value = 0; |
154 YahooFederation fed = YAHOO_FEDERATION_NONE; | 154 YahooFederation fed = YAHOO_FEDERATION_NONE; |
155 | 155 |
156 while (l) { | 156 while (l) { |
157 struct yahoo_pair *pair = l->data; | 157 struct yahoo_pair *pair = l->data; |
158 | 158 |
159 switch (pair->key) { | 159 switch (pair->key) { |
160 case 7: | 160 case 7: |
173 | 173 |
174 if (value != 1 && value != 2) { | 174 if (value != 1 && value != 2) { |
175 purple_debug_error("yahoo", "Received unknown value for presence key: %d\n", value); | 175 purple_debug_error("yahoo", "Received unknown value for presence key: %d\n", value); |
176 return; | 176 return; |
177 } | 177 } |
178 | 178 |
179 switch (fed) { | 179 switch (fed) { |
180 case YAHOO_FEDERATION_MSN: | 180 case YAHOO_FEDERATION_MSN: |
181 who = g_strconcat("msn/", temp, NULL); | 181 who = g_strconcat("msn/", temp, NULL); |
182 break; | 182 break; |
183 case YAHOO_FEDERATION_OCS: | 183 case YAHOO_FEDERATION_OCS: |
236 return; | 236 return; |
237 | 237 |
238 f = yahoo_friend_find(gc, name); | 238 f = yahoo_friend_find(gc, name); |
239 if (!f) | 239 if (!f) |
240 return; | 240 return; |
241 | 241 |
242 if(f->fed != YAHOO_FEDERATION_NONE) | 242 if(f->fed != YAHOO_FEDERATION_NONE) |
243 temp = name+4; | 243 temp = name+4; |
244 else | 244 else |
245 temp = name; | 245 temp = name; |
246 | 246 |
247 /* No need to change the value if it is already correct */ | 247 /* No need to change the value if it is already correct */ |
248 if (f->presence == presence) { | 248 if (f->presence == presence) { |
249 purple_debug_info("yahoo", "Not setting presence because there are no changes.\n"); | 249 purple_debug_info("yahoo", "Not setting presence because there are no changes.\n"); |
250 return; | 250 return; |
251 } | 251 } |