[Adium-devl] Some AIAccount improvements

Evan Schoenberg evan at adiumx.com
Mon Jan 22 12:02:47 UTC 2007


On Jan 22, 2007, at 5:35 AM, Colin Barrett wrote:

> - It would be nice to know if sending an autoreply is supported
> natively by the service, mostly so the autoreply plugin can append
> (Autoreply) or some other flag on MSN or other protocols that don't
> natively support autoreplies.

That's a good idea.  The accountside method for Gaim is already  
implemented, in CBGaimAccount... the name is dumb, though, and it  
obviously needs to have a stub in the superclass before it can be  
used generally.

// **XXX** Not used at present. Do we want to?
- (BOOL)shouldSendAutoresponsesWhileAway
{
	if (account && account->gc) {
		return (account->gc->flags & GAIM_CONNECTION_AUTO_RESP);
	}
	
	return NO;
}

> - It would also be nice to know if a protocol generally handles
> actions (/me) at the protocol level. We'll need this when/if we do
> IRC, and on GTalk it would be nice to implement this, since the
> official client handles /me's. There may or may not be a XEP for this,
> but we'll still need to have a way to expose this property to the /me
> plugin.
I think it'd be nice to have the method be a query for a particular  
action... so if a protocol handled "/join" but not "/me" we'd know  
what to do in both cases.  Right now there's some slightly awkward  
code in place in the gaim plugin which checks this after a message is  
sent so that we can have better handling of it than the gaim way,  
which is hardcoded to throw an error if you type an action which  
isn't supported... which strikes me as really silly because if I'm an  
AIM user and would never think that /join should be a command I would  
be definitely annoyed to find I simply can't send that because "That  
action is not supported on this protocol."

-Evan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070122/dc23d076/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/20070122/dc23d076/attachment.sig>


More information about the devel mailing list