diff options
author | René Schümann <white06tiger@gmail.com> | 2015-03-26 20:42:21 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2015-03-26 20:42:21 +0000 |
commit | ff89b415dfda0190cae5a848e92e5315e8ad3b62 (patch) | |
tree | 83ce417daf4d5905094173e8c0ce6fe0a33e2c41 /plugins/MirOTR/src/otr.cpp | |
parent | e3dac6207e1bc1c0194e236a058a5eef12627d2c (diff) |
MirOTR: added notice when we're using an older protocol, also added info about used version to menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@12513 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/otr.cpp')
-rw-r--r-- | plugins/MirOTR/src/otr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/MirOTR/src/otr.cpp b/plugins/MirOTR/src/otr.cpp index 9d2d5867a0..0c988da819 100644 --- a/plugins/MirOTR/src/otr.cpp +++ b/plugins/MirOTR/src/otr.cpp @@ -190,6 +190,12 @@ extern "C" { } else { // should never happen mir_sntprintf(buff, SIZEOF(buff), TranslateT(LANG_SESSION_NOT_STARTED_OTR), contact_get_nameT(hContact)); } + if(context->protocol_version < MIROTR_PROTO_LATEST){ + size_t remaining = _tcslen(buff); + TCHAR *offset = buff + remaining; + remaining = SIZEOF(buff) - remaining; + mir_sntprintf(offset, remaining, TranslateT("\nusing older protocol version %i"), context->protocol_version); + } ShowMessage(hContact, buff); } |