aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/chat.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2007-01-19 02:11:09 +0000
committerGravatar Szymon Tomasz Stefanek2007-01-19 02:11:09 +0000
commitecd49ed1192c79a3b55cdc4130bec1d4182f71b4 (patch)
tree2ffd5b617136b4296e25eb3c66a5cd27180f21c8 /src/modules/dcc/chat.cpp
parent*AUTOMATICALLY* updated KVI_SOURCES_DATE variable (diff)
downloadKVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.tar.gz
KVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.tar.bz2
KVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.zip
More Qt 4.x port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@195 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dcc/chat.cpp')
-rw-r--r--src/modules/dcc/chat.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/modules/dcc/chat.cpp b/src/modules/dcc/chat.cpp
index 94e0350f6..608859677 100644
--- a/src/modules/dcc/chat.cpp
+++ b/src/modules/dcc/chat.cpp
@@ -337,9 +337,12 @@ void KviDccChat::ownMessage(const QString &text)
}
break;
default: // also case KviCryptEngine::EncryptError
+ {
+ QString szErr = cryptSessionInfo()->pEngine->lastError();
output(KVI_OUT_SYSTEMERROR,
- __tr2qs_ctx("The crypto engine was not able to encrypt the current message (%Q): %s, no data was sent to the remote end","dcc"),
- &text,cryptSessionInfo()->pEngine->lastError());
+ __tr2qs_ctx("The crypto engine was not able to encrypt the current message (%Q): %Q, no data was sent to the remote end","dcc"),
+ &text,&szErr);
+ }
break;
}
return;
@@ -437,9 +440,12 @@ bool KviDccChat::event(QEvent *e)
break;
default: // also case KviCryptEngine::DecryptError
+ {
+ QString szErr = cinf->pEngine->lastError();
output(KVI_OUT_SYSTEMERROR,
- __tr2qs_ctx("The following message appears to be encrypted, but the crypto engine failed to decode it: %s","dcc"),
- cinf->pEngine->lastError());
+ __tr2qs_ctx("The following message appears to be encrypted, but the crypto engine failed to decode it: %Q","dcc"),
+ &szErr);
+ }
break;
}
}