diff options
-rw-r--r-- | MirOTR/otr.cpp | 4 | ||||
-rw-r--r-- | MirOTR/svcs_proto.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/MirOTR/otr.cpp b/MirOTR/otr.cpp index ce7ff1d..76009ac 100644 --- a/MirOTR/otr.cpp +++ b/MirOTR/otr.cpp @@ -268,7 +268,9 @@ extern "C" { TCHAR buff[512];
mir_sntprintf(buff, 512, TranslateT(LANG_SESSION_TERMINATED_BY_OTR), contact_get_nameT((HANDLE)opdata));
//MessageBox(0, buff, Translate("OTR Information"), MB_OK);
- ShowMessage((HANDLE)opdata, buff);
+ if(!Miranda_Terminated()) {
+ ShowMessage((HANDLE)opdata, buff);
+ }
// opdata is hContact
SetEncryptionStatus((HANDLE)opdata, otr_context_get_trust(context));
diff --git a/MirOTR/svcs_proto.cpp b/MirOTR/svcs_proto.cpp index c4b193c..5ea6055 100644 --- a/MirOTR/svcs_proto.cpp +++ b/MirOTR/svcs_proto.cpp @@ -199,7 +199,7 @@ INT_PTR SVC_OTRRecvMessage(WPARAM wParam,LPARAM lParam){ tlv = otrl_tlv_find(tlvs, OTRL_TLV_DISCONNECTED);
- if (tlv) {
+ if (tlv && !Miranda_Terminated()) {
/* Notify the user that the other side disconnected. */
TCHAR buff[256];
mir_sntprintf(buff, 256, TranslateT(LANG_SESSION_TERMINATED_BY_OTR), contact_get_nameT(ccs->hContact));
|