Changeset 76e2f62
- Timestamp:
- 2010-09-19T17:29:10Z (14 years ago)
- Branches:
- master
- Children:
- 51e9a1d
- Parents:
- 2dcaf9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r2dcaf9a r76e2f62 1099 1099 nextMsg = context->smstate->nextExpected; 1100 1100 1101 tlv = otrl_tlv_find(tlvs, OTRL_TLV_SMP1Q); 1102 if (tlv) { 1103 if (nextMsg != OTRL_SMP_EXPECT1) { 1104 irc_usermsg(irc, "smp %s: spurious SMP1Q received, aborting", u->nick); 1105 otrl_message_abort_smp(us, ops, u->bu->ic, context); 1106 otrl_sm_state_free(context->smstate); 1107 } else { 1108 char *question = g_strndup((char *)tlv->data, tlv->len); 1109 irc_usermsg(irc, "smp: question from %s: \"%s\"", u->nick, 1110 question); 1111 irc_usermsg(irc, "smp: respond with \x02otr smp %s <answer>\x02", 1112 u->nick); 1113 g_free(question); 1114 /* smp stays in EXPECT1 until user responds */ 1115 } 1116 } 1101 1117 tlv = otrl_tlv_find(tlvs, OTRL_TLV_SMP1); 1102 1118 if (tlv) {
Note: See TracChangeset
for help on using the changeset viewer.