comparison libgaim/status.c @ 14391:6e89bfd2b33f

[gaim-migrate @ 17098] I don't think PRPLs should need to make sure that proto_data is valid in the set_idle() callback. Some of my idle changes on the 23rd added that requirement. This removes the requirement to make things the way they were before. I'm also reverting SVN revision 17005 from faceprint and 17009 from marv_sf. Those revisions fixed the PRPLs so they wouldn't crash if set_idle() was called before the acocunt was fully connected. But that shouldn't be needed any more. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 31 Aug 2006 09:02:10 +0000
parents 60b1bc8dbf37
children 4df2827fc2eb
comparison
equal deleted inserted replaced
14390:d4a26ada1971 14391:6e89bfd2b33f
1386 } 1386 }
1387 } 1387 }
1388 1388
1389 gc = gaim_account_get_connection(account); 1389 gc = gaim_account_get_connection(account);
1390 1390
1391 if (gc != NULL && gc->prpl != NULL) 1391 if (gc != NULL && GAIM_CONNECTION_IS_CONNECTED(gc) &&
1392 gc->prpl != NULL)
1392 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); 1393 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
1393 1394
1394 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && 1395 if (prpl_info && prpl_info->set_idle)
1395 prpl_info->set_idle)
1396 prpl_info->set_idle(gc, (idle ? (time(NULL) - idle_time) : 0)); 1396 prpl_info->set_idle(gc, (idle ? (time(NULL) - idle_time) : 0));
1397 } 1397 }
1398 } 1398 }
1399 1399
1400 void 1400 void