adium-1.4 2618:1b8a3dce56d1: Patch from mathuaerknedam to replac...
commits at adium.im
commits at adium.im
Fri Oct 16 15:03:03 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/1b8a3dce56d1
revision: 2618:1b8a3dce56d1
author: Zachary West <zacw at adium.im>
date: Fri Oct 16 11:02:56 2009 -0400
Patch from mathuaerknedam to replace status keywords in messages with blanks, and vice versa. Fixes #11872.
diffs (29 lines):
diff -r 3d815231bb66 -r 1b8a3dce56d1 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Fri Oct 16 11:01:08 2009 -0400
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m Fri Oct 16 11:02:56 2009 -0400
@@ -869,6 +869,9 @@
NSString *displayName = [content.chat displayNameForContact:contentSource];
+ [inString replaceKeyword:@"%status%"
+ withString:@""];
+
[inString replaceKeyword:@"%senderScreenName%"
withString:[(formattedUID ?
formattedUID :
@@ -1071,6 +1074,15 @@
[inString replaceKeyword:@"%statusSender%"
withString:[theSource.displayName stringByEscapingForXMLWithEntities:nil]];
+ [inString replaceKeyword:@"%senderScreenName%"
+ withString:@""];
+
+ [inString replaceKeyword:@"%senderPrefix%"
+ withString:@""];
+
+ [inString replaceKeyword:@"%sender%"
+ withString:@""];
+
if ((statusPhrase = [[content userInfo] objectForKey:@"Status Phrase"])) {
do{
range = [inString rangeOfString:@"%statusPhrase%"];
More information about the commits
mailing list