comparison src/protocols/rendezvous/rendezvous.c @ 10011:32467b63f55a

[gaim-migrate @ 10928] More deprecation of serv_got_update or whatever it's called. Is all the sound and logging stuff done in the new code? I didn't actually check. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 11 Sep 2004 03:37:16 +0000
parents c124bef68132
children 61852117568f
comparison
equal deleted inserted replaced
10010:56e34a659db2 10011:32467b63f55a
183 } 183 }
184 184
185 static void rendezvous_handle_rr_txt(GaimConnection *gc, ResourceRecord *rr, const gchar *name) 185 static void rendezvous_handle_rr_txt(GaimConnection *gc, ResourceRecord *rr, const gchar *name)
186 { 186 {
187 RendezvousData *rd = gc->proto_data; 187 RendezvousData *rd = gc->proto_data;
188 GaimAccount *account = gaim_connection_get_account(gc);
188 RendezvousBuddy *rb; 189 RendezvousBuddy *rb;
189 GSList *rdata; 190 GSList *rdata;
190 ResourceRecordRDataTXTNode *node1, *node2; 191 ResourceRecordRDataTXTNode *node1, *node2;
191 192
192 rdata = rr->rdata; 193 rdata = rr->rdata;
239 /* Time is seconds since January 1st 2001 GMT */ 240 /* Time is seconds since January 1st 2001 GMT */
240 rb->idle = atoi(node2->value); 241 rb->idle = atoi(node2->value);
241 rb->idle += 978307200; /* convert to seconds-since-epoch */ 242 rb->idle += 978307200; /* convert to seconds-since-epoch */
242 } 243 }
243 rb->status = UC_IDLE; 244 rb->status = UC_IDLE;
244 gaim_prpl_got_user_idle(account, b->name, TRUE, rb->idle); 245 gaim_prpl_got_user_idle(account, name, TRUE, rb->idle);
245 } else if (!strcmp(node1->value, "dnd")) { 246 } else if (!strcmp(node1->value, "dnd")) {
246 /* Away */ 247 /* Away */
247 rb->status = UC_UNAVAILABLE; 248 rb->status = UC_UNAVAILABLE;
248 } 249 }
249 gaim_prpl_got_user_status(account, b->name, "online", NULL); 250 gaim_prpl_got_user_status(account, name, "online", NULL);
250 /* XXX - Idle time is rb->idle and status is rb->status */ 251 /* XXX - Idle time is rb->idle and status is rb->status */
251 } 252 }
252 253
253 node1 = mdns_txt_find(rdata, "msg"); 254 node1 = mdns_txt_find(rdata, "msg");
254 if ((node1 != NULL) && (node1->value != NULL)) { 255 if ((node1 != NULL) && (node1->value != NULL)) {