Add %senderColor% to the header keywords. Fixes #12666.
authorZachary West <zacw@adium.im>
Sat, 24 Oct 2009 12:13:13 -0400
changeset 2639a4f812b97eff
parent 2638 81dc067bf20b
child 2640 99c3fd885fe4
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) {