adium-1.4 2967:9132e566fda9: Correctly read the HideJoinLeave se...

commits at adium.im commits at adium.im
Mon May 17 02:34:08 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/9132e566fda9
revision:	2967:9132e566fda9
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun May 16 23:54:52 2010 +0200

Correctly read the HideJoinLeave setting on startup. Fixes #14009

diffs (14 lines):

diff -r d7bd97c12b83 -r 9132e566fda9 Source/AIChatController.m
--- a/Source/AIChatController.m	Sat May 15 14:38:53 2010 -0500
+++ b/Source/AIChatController.m	Sun May 16 23:54:52 2010 +0200
@@ -414,8 +414,8 @@
 		chat.isGroupChat = YES;
 		chat.chatCreationDictionary = chatCreationInfo;
 		/* Negative preference so (default == NO) -> showing join/leave messages */
-		chat.showJoinLeave = ![[adium preferenceController] preferenceForKey:[NSString stringWithFormat:@"HideJoinLeave-%@", name]
-																	   group:PREF_GROUP_STATUS_PREFERENCES];		
+		chat.showJoinLeave = ![[[adium preferenceController] preferenceForKey:[NSString stringWithFormat:@"HideJoinLeave-%@", name]
+																	    group:PREF_GROUP_STATUS_PREFERENCES] boolValue];		
 		[openChats addObject:chat];
 		
 		AILog(@"chatWithName:%@ identifier:%@ onAccount:%@ added <<%@>> [%@] [%@]",name,identifier,account,chat,openChats,chatCreationInfo);




More information about the commits mailing list