diff options
author | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 18:31:56 +0000 |
---|---|---|
committer | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 18:31:56 +0000 |
commit | 1ff3c50ce30716df520e7a1a3a88cb8cae33b49c (patch) | |
tree | 7c9775846b9f1bc6767dc26937e06f241f68cb15 /MirOTR/otr.cpp | |
parent | 8f59e5a39bd880a7b3ec6510fc550f866fd9a31c (diff) |
no more 'session terminated' message on miranda im close
git-svn-id: http://mirotr.googlecode.com/svn/trunk@55 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'MirOTR/otr.cpp')
-rw-r--r-- | MirOTR/otr.cpp | 4 |
1 files changed, 3 insertions, 1 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));
|