From 1ff3c50ce30716df520e7a1a3a88cb8cae33b49c Mon Sep 17 00:00:00 2001 From: Nvinside Date: Mon, 4 Jul 2011 18:31:56 +0000 Subject: no more 'session terminated' message on miranda im close git-svn-id: http://mirotr.googlecode.com/svn/trunk@55 eced67a3-f377-a0ae-92ae-d6de1850b05a --- MirOTR/otr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'MirOTR/otr.cpp') 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)); -- cgit v1.2.3