Add %senderColor% to the header keywords. Fixes #12666.
authorZachary West <zacw@adium.im>
Sat Oct 24 12:13:13 2009 -0400 (2009-10-24)
changeset 27717e41d8e52be8
parent 2770 b52dcb3742cc
child 2772 d17d8a241b66
Add %senderColor% to the header keywords. Fixes #12666.
Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
     1.1 --- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 12:01:59 2009 -0400
     1.2 +++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 12:13:13 2009 -0400
     1.3 @@ -1156,6 +1156,9 @@
     1.4  	AIListContact	*listObject = chat.listObject;
     1.5  	NSString		*iconPath = nil;
     1.6  	
     1.7 +	[inString replaceKeyword:@"%senderColor%"
     1.8 +				  withString:[NSColor representedColorForObject:listObject.UID withValidColors:validSenderColors]];
     1.9 +	
    1.10  	if (listObject) {
    1.11  		iconPath = [listObject valueForProperty:KEY_WEBKIT_USER_ICON];
    1.12  		if (!iconPath) {