Implemented per contact OTR policy setting

This commit is contained in:
James Booth
2014-05-11 19:32:07 +01:00
parent 6d955609c5
commit 9dda7036a9
9 changed files with 95 additions and 16 deletions

View File

@@ -2689,6 +2689,10 @@ cmd_otr(gchar **args, struct cmd_help_t help)
cons_show("OTR policy is now set to: %s", choice);
return TRUE;
} else {
if (jabber_get_connection_status() != JABBER_CONNECTED) {
cons_show("You must be connected to set the OTR policy for a contact.");
return TRUE;
}
char *contact_jid = roster_barejid_from_name(contact);
if (contact_jid == NULL) {
contact_jid = contact;