[OTR-dev] user has stopped OTR message

Ian Goldberg ian at cypherpunks.ca
Sun Jan 30 11:03:00 EST 2005


So there's now support in libotr for the is_logged_in callback, and
there's a call which checks that, and if it says yes, sends a message to
the other side (in the private channel) saying the user has terminated
his side of the OTR conversation.  It then proceeds to terminate it.

Upon receiving such messages, libotr uses the display_otr_message
callback to show it.  [gaim-otr now does this in a sensible way, too.]

Question: what exactly should the text of the above message be?
It will be shown as:

OTR [otheruser]: something goes here

in the conversation window.  So, what "goes here"?  I tried "The private
conversation with you has ended.", but that's not quite right, since
your (the receiver's) side *is* still private.  We want the message to
convey (concisely) that the other side has ended his private connection
with you, and you probably should as well.

Also, for Evan: you mentioned that gaim should be able to produce
sensible yes/no/don't-know answers to the is_logged_in question.  Can
you supply some code for that?

    /* Report whether you think the given user is online.  Return 1 if
     * you think he is, 0 if you think he isn't, -1 if you're not sure.
     *
     * If you return 1, messages such as heartbeats or other
     * notifications may be sent to the user, which could result in "not
     * logged in" errors if you're wrong. */
    int (*is_logged_in)(void *opdata, const char *accountname,
            const char *protocol, const char *recipient);

Thanks,

   - Ian



More information about the OTR-dev mailing list