adium 3206:0b104481dea6: Correctly read the HideJoinLeave settin...

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


details:	http://hg.adium.im/adium/rev/0b104481dea6
revision:	3206:0b104481dea6
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
(transplanted from 9132e566fda9fe7a8e85d37ee7b62f9bcb488b63)

diffs (14 lines):

diff -r 56109f8ef53b -r 0b104481dea6 Source/AIChatController.m
--- a/Source/AIChatController.m	Sat May 15 15:20:29 2010 -0500
+++ b/Source/AIChatController.m	Sun May 16 23:54:52 2010 +0200
@@ -420,8 +420,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