On 31 Oct 2013, at 00:04, Ian Goldberg <[email protected]> wrote: > On Wed, Oct 30, 2013 at 06:58:24PM +0100, Thomas Balthazar wrote: >> Thanks for your answer, Ian. >> I was wondering if there was a specific callback or method to detect >> the AAMS message "elegantly" but I guess I'll just test if the string >> starts with "?OTR:AAMS" then. > > I think the more "elegant" way is exactly to use the gone_secure > callback to set a flag in your opdata structure. If that flag is set, > then sending the message you have in your hand will cause the other side > to go secure. Note that if you *are* the other side (you're receiving > the AAMS message), then "the message in your hand" should be NULL, and > the statement is still true. > > - Ian
Got it. I came up with this solution : https://github.com/tbalthazar/TBOTRManager/commit/9631ac5c809360bb9a00071e8ebbeff5a9c28f73 Thanks a lot for your insights. Best, Thomas. _______________________________________________ OTR-dev mailing list [email protected] http://lists.cypherpunks.ca/mailman/listinfo/otr-dev
