[OTR-dev] acoountname as 'ourname' in 'incorrect no-plugin' message

Ian Goldberg ian at cypherpunks.ca
Wed Feb 22 09:50:15 EST 2006


On Tue, Feb 21, 2006 at 08:08:37PM +1100, Scott Ellis wrote:
> > >I'm not sure I understand here.  It looks like you're passing the string
> > >"OTR" as the first parameter to otrl_proto_default_query_msg() when the
> > >user selects "start OTR" instead of passing the account name.
> 
> 
> Yes that's what i pass in. In miranda there aren't different accounts - only
> different protocols. It is possible to have e.g. two MSN 'accounts' but you
> do that using a 'hack' - i.e. you copy the msn.dll plugin to msn2.dll or the
> like, and miranda treats it as a seperate protocol.

Wow.  That *is* a hack.  Surely there's a way to extract your account
name, though?

> So, in the plugin there
> is only one account - i called it OTR, since i didn't think it'd make a
> difference. What I meant to point out is, since the username is passed into
> that function also, shouldn't the username be used in this message?

The remote username?  That's not passed in:

/* Return a pointer to a newly-allocated OTR query message, customized
 * with our name.  The caller should free() the result when he's done
 * with it. */
char *otrl_proto_default_query_msg(const char *ourname, OtrlPolicy policy);

   - Ian



More information about the OTR-dev mailing list