[Adium-devl] Sending of Messages

Evan Schoenberg evan at adiumx.com
Mon Nov 20 01:10:42 UTC 2006


Thomas,

On Nov 19, 2006, at 4:55 AM, Thomas Karpiniec wrote:

> my major issue
> being finding where messages are actually sent so I can identify and
> modify logging.
Logging is well-segregated to AILoggerPlugin.  In response to the  
Content_ContentObjectAdded notification, it logs messages... though  
having said that, I wonder if it might not more appropriately be part  
of the message filtering system instead.  No matter.

//Log any content that is sent or received
- (void)contentObjectAdded:(NSNotification *)notification
{
	AIContentMessage 	*content = [[notification userInfo]  
objectForKey:@"AIContentObject"];
	if ([content postProcessContent]) {
	//Message is logged
	}
}

is where you'll want to look in terms of *using* a new preference;  
from the AIContentMessage you could retrieve the source/destination  
and access a stored preference for that contact.

I think Peter answered your other question, about -[AIAccount  
sendMessageObject:] being an abstract superclass implementation;  
please let us know if that or anything else isn't clear :)

Cheers,
Evan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20061119/af75f03e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20061119/af75f03e/attachment.sig>


More information about the devel mailing list