comparison src/protocols/yahoo/yahoo.c @ 8441:ea999c4a9a11

[gaim-migrate @ 9171] " This fixes a bug where sometimes we'd think people were idle when they weren't. I think it was xgrimx (unless it was Simguy) who pointed this out, coming back from going away made them idle. But not really. Gaim just thought so." --marv again committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 14 Mar 2004 05:39:37 +0000
parents ae15e717ca75
children 791c05d1679d
comparison
equal deleted inserted replaced
8440:be172fe866ac 8441:ea999c4a9a11
376 break; 376 break;
377 case 17: /* in chat? */ 377 case 17: /* in chat? */
378 break; 378 break;
379 case 47: /* is custom status away or not? 2=idle*/ 379 case 47: /* is custom status away or not? 2=idle*/
380 if (!f) 380 if (!f)
381 break;
382
383 /* I have no idea what it means when this is
384 * set when someone's available, but it doesn't
385 * mean idle. */
386 if (f->status == YAHOO_STATUS_AVAILABLE)
381 break; 387 break;
382 f->away = strtol(pair->value, NULL, 10); 388 f->away = strtol(pair->value, NULL, 10);
383 if (f->away == 2) 389 if (f->away == 2)
384 f->idle = time(NULL); 390 f->idle = time(NULL);
385 break; 391 break;