Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/otr.h @ 2026:564d99cdf0d1
MUC: do not destroy previous room invitation to create a new one
If a previous similar mediated invitation exists, we do not remove
it to create a new one (it's very confusing) unless the new one
looks better, e.g. if the new invitation allows us to decline the
invitation and the old one did not.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 25 Aug 2012 15:40:50 +0200 |
parents | e6d355e50d7a |
children | 9fb1ccf291cc |
line wrap: on
line source
#ifndef __MCABBER_OTR_H__ #define __MCABBER_OTR_H__ 1 #include <mcabber/config.h> #ifdef HAVE_LIBOTR #include <libotr/proto.h> #include <libotr/message.h> #include <libotr/privkey.h> enum otr_policy { plain, opportunistic, manual, always }; void otr_init(const char *jid); void otr_terminate(void); void otr_establish (const char * buddy); void otr_disconnect (const char * buddy); void otr_fingerprint(const char * buddy, const char * trust); void otr_print_info (const char * buddy); void otr_smp_query (const char * buddy, const char * secret); void otr_smp_respond(const char * buddy, const char * secret); void otr_smp_abort (const char * buddy); void otr_key (void); int otr_receive (char **otr_data, const char * buddy, int * free_msg); int otr_send (char **msg, const char *buddy); #endif /* HAVE_LIBOTR */ int otr_enabled (void); #endif /* __MCABBER_OTR_H__ */ /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */