adium 2430:e2871047aade: Only hide messages in the IRC hider for...
commits at adium.im
commits at adium.im
Sun May 31 18:55:16 UTC 2009
details: http://hg.adium.im/adium/rev/e2871047aade
revision: 2430:e2871047aade
author: Zachary West <zacw at adium.im>
date: Sun May 31 14:55:09 2009 -0400
Only hide messages in the IRC hider for IRC.
diffs (36 lines):
diff -r 4211a3be19a2 -r e2871047aade Plugins/Purple Service/AIAnnoyingIRCMessagesHiderPlugin.m
--- a/Plugins/Purple Service/AIAnnoyingIRCMessagesHiderPlugin.m Sun May 31 14:41:17 2009 -0400
+++ b/Plugins/Purple Service/AIAnnoyingIRCMessagesHiderPlugin.m Sun May 31 14:55:09 2009 -0400
@@ -7,6 +7,7 @@
//
#import "AIAnnoyingIRCMessagesHiderPlugin.h"
+#import "ESIRCAccount.h"
#import <Adium/AIContentControllerProtocol.h>
#import <Adium/AIContentObject.h>
@@ -14,6 +15,7 @@
#import <Adium/AIContentObject.h>
#import <Adium/AIContentMessage.h>
#import <Adium/AIListObject.h>
+#import <Adium/AIChat.h>
@implementation AIAnnoyingIRCMessagesHiderPlugin
- (void)installPlugin
@@ -33,12 +35,14 @@
- (void)willReceiveContent:(NSNotification *)notification
{
AIContentObject *contentObject = [[notification userInfo] objectForKey:@"Object"];
- BOOL hidden;
- if (![contentObject isKindOfClass:[AIContentMessage class]]) {
+ if (![contentObject isKindOfClass:[AIContentMessage class]] ||
+ ![contentObject.chat.account isKindOfClass:[ESIRCAccount class]]) {
return;
}
+ BOOL hidden = NO;
+
NSArray *serverMessages = [NSArray arrayWithObjects:
@"highest connection count",
@"your host is",
More information about the commits
mailing list