<br><br>
<div><span class="gmail_quote">On 23/02/06, <b class="gmail_sendername">Ian Goldberg</b> <<a href="mailto:ian@cypherpunks.ca">ian@cypherpunks.ca</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, Feb 21, 2006 at 08:08:37PM +1100, Scott Ellis wrote:<br>> > >I'm not sure I understand here.  It looks like you're passing the string
<br>> > >"OTR" as the first parameter to otrl_proto_default_query_msg() when the<br>> > >user selects "start OTR" instead of passing the account name.<br>><br>><br>> Yes that's what i pass in. In miranda there aren't different accounts - only
<br>> different protocols. It is possible to have e.g. two MSN 'accounts' but you<br>> do that using a 'hack' - i.e. you copy the msn.dll plugin to msn2.dll or the<br>> like, and miranda treats it as a seperate protocol.
<br><br>Wow.  That *is* a hack.  Surely there's a way to extract your account<br>name, though?</blockquote>
<div> </div>
<div>There really isn't the concept of an account name in miranda...I can get the protocol name, or the protocol unique identifier (e.g. UIN) which may not be human readable...or, which is about the closest thing, the name of the user's database file - but that is often 'default' or something like that.
</div>
<div> </div>
<div>I guess what I'm suggesting is that the library do some processing of the query message even when the policy is 'never'.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> So, in the plugin there<br>> is only one account - i called it OTR, since i didn't think it'd make a
<br>> difference. What I meant to point out is, since the username is passed into<br>> that function also, shouldn't the username be used in this message?<br><br>The remote username?  That's not passed in:<br><br>/* Return a pointer to a newly-allocated OTR query message, customized
<br>* with our name.  The caller should free() the result when he's done<br>* with it. */<br>char *otrl_proto_default_query_msg(const char *ourname, OtrlPolicy policy);</blockquote>
<div> </div>
<div>Sorry, I mean't the username is passed into the 'receieve' function, on the receiver side - i misunderstood your last post regarding that.</div></div>