changeset 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 fdddf11a42f2 705eca1f82e2
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Sun Aug 26 08:20:49 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Sun Aug 26 08:25:37 2007 +0000
@@ -1520,11 +1520,12 @@
 			(GSourceFunc)msim_check_alive, session);
 #endif
 
-	/* TODO: if (purple_account_get_check_mail(session->account)) */
-	purple_timeout_add(MSIM_MAIL_INTERVAL_CHECK, 
-			(GSourceFunc)msim_check_inbox, session);
-
-	msim_check_inbox(session);
+	if (purple_account_get_check_mail(session->account)) {
+		purple_timeout_add(MSIM_MAIL_INTERVAL_CHECK, 
+				(GSourceFunc)msim_check_inbox, session);
+		msim_check_inbox(session);
+	}
+
 
 	return TRUE;
 }