diff options
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); } |