changeset 7554:4267ac18fd07

[gaim-migrate @ 8168] This is probably more efficient as far as short-circuiting goes. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 18 Nov 2003 04:46:47 +0000
parents 7d95978b07d9
children 450b25d8d953
files src/log.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Tue Nov 18 04:39:50 2003 +0000
+++ b/src/log.c	Tue Nov 18 04:46:47 2003 +0000
@@ -65,8 +65,8 @@
 	g_return_if_fail(log->logger);
 	g_return_if_fail(log->logger->write);
 
-	if ( (gaim_prefs_get_bool("/gaim/gtk/logging/log_chats") && log->type == GAIM_LOG_CHAT) || 
-	     (gaim_prefs_get_bool("/gaim/gtk/logging/log_ims") && log->type == GAIM_LOG_IM))
+	if ((log->type == GAIM_LOG_IM && gaim_prefs_get_bool("/gaim/gtk/logging/log_ims")) ||
+	    (log->type == GAIM_LOG_CHAT && gaim_prefs_get_bool("/gaim/gtk/logging/log_chats")))
 		(log->logger->write)(log, type, from, time, message);
 }