comparison libpurple/protocols/jabber/roster.c @ 27569:65b5bc543214

Remove this; it's been commented out for about 3.5 years.
author Paul Aurich <paul@darkrain42.org>
date Sat, 06 Jun 2009 22:47:49 +0000
parents ff099a916d6b
children 93a41017dca9
comparison
equal deleted inserted replaced
27568:ff099a916d6b 27569:65b5bc543214
192 jb->subscription = JABBER_SUB_FROM; 192 jb->subscription = JABBER_SUB_FROM;
193 else if(!strcmp(subscription, "both")) 193 else if(!strcmp(subscription, "both"))
194 jb->subscription = JABBER_SUB_BOTH; 194 jb->subscription = JABBER_SUB_BOTH;
195 else if(!strcmp(subscription, "remove")) 195 else if(!strcmp(subscription, "remove"))
196 jb->subscription = JABBER_SUB_REMOVE; 196 jb->subscription = JABBER_SUB_REMOVE;
197 /* XXX: if subscription is now "from" or "none" we need to 197 }
198 * fake a signoff, since we won't get any presence from them 198
199 * anymore */ 199 if(purple_strequal(ask, "subscribe"))
200 /* YYY: I was going to use this, but I'm not sure it's necessary
201 * anymore, but it's here in case it is. */
202 /*
203 if ((jb->subscription & JABBER_SUB_FROM) ||
204 (jb->subscription & JABBER_SUB_NONE)) {
205 purple_prpl_got_user_status(js->gc->account, jid, "offline", NULL);
206 }
207 */
208 }
209
210 if(ask && !strcmp(ask, "subscribe"))
211 jb->subscription |= JABBER_SUB_PENDING; 200 jb->subscription |= JABBER_SUB_PENDING;
212 else 201 else
213 jb->subscription &= ~JABBER_SUB_PENDING; 202 jb->subscription &= ~JABBER_SUB_PENDING;
214 203
215 if(jb->subscription == JABBER_SUB_REMOVE) { 204 if(jb->subscription == JABBER_SUB_REMOVE) {