Mercurial > pidgin.yaz
comparison libpurple/protocols/myspace/myspace.c @ 19437:a8c9c42c3572
Only check for mail if "New mail notifications" is enabled in account options.
Otherwise, don't setup a timer. This will help keep debugging log noise down.
Closes #2722.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sun, 26 Aug 2007 08:25:37 +0000 |
parents | a62c9b9c4596 |
children | 0202145e3465 |
comparison
equal
deleted
inserted
replaced
19436:a62c9b9c4596 | 19437:a8c9c42c3572 |
---|---|
1518 #ifdef MSIM_USE_KEEPALIVE | 1518 #ifdef MSIM_USE_KEEPALIVE |
1519 purple_timeout_add(MSIM_KEEPALIVE_INTERVAL_CHECK, | 1519 purple_timeout_add(MSIM_KEEPALIVE_INTERVAL_CHECK, |
1520 (GSourceFunc)msim_check_alive, session); | 1520 (GSourceFunc)msim_check_alive, session); |
1521 #endif | 1521 #endif |
1522 | 1522 |
1523 /* TODO: if (purple_account_get_check_mail(session->account)) */ | 1523 if (purple_account_get_check_mail(session->account)) { |
1524 purple_timeout_add(MSIM_MAIL_INTERVAL_CHECK, | 1524 purple_timeout_add(MSIM_MAIL_INTERVAL_CHECK, |
1525 (GSourceFunc)msim_check_inbox, session); | 1525 (GSourceFunc)msim_check_inbox, session); |
1526 | 1526 msim_check_inbox(session); |
1527 msim_check_inbox(session); | 1527 } |
1528 | |
1528 | 1529 |
1529 return TRUE; | 1530 return TRUE; |
1530 } | 1531 } |
1531 | 1532 |
1532 /** | 1533 /** |