projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e06ce3b
)
correcting some debug strings in the SignalProxy
author
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 29 Jan 2009 00:06:54 +0000
(
01:06
+0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 29 Jan 2009 00:06:54 +0000
(
01:06
+0100)
src/common/signalproxy.cpp
patch
|
blob
|
history
diff --git
a/src/common/signalproxy.cpp
b/src/common/signalproxy.cpp
index
f1b4215
..
d9943b2
100644
(file)
--- a/
src/common/signalproxy.cpp
+++ b/
src/common/signalproxy.cpp
@@
-934,12
+934,12
@@
bool SignalProxy::readDataFromDevice(QIODevice *dev, quint32 &blockSize, QVarian
}
if(blockSize > 1 << 22) {
}
if(blockSize > 1 << 22) {
- disconnectDevice(dev, tr("
Client
tried to send package larger than max package size!"));
+ disconnectDevice(dev, tr("
Peer
tried to send package larger than max package size!"));
return false;
}
if(blockSize == 0) {
return false;
}
if(blockSize == 0) {
- disconnectDevice(dev, tr("
Client
tried to send 0 byte package!"));
+ disconnectDevice(dev, tr("
Peer
tried to send 0 byte package!"));
return false;
}
return false;
}
@@
-956,7
+956,7
@@
bool SignalProxy::readDataFromDevice(QIODevice *dev, quint32 &blockSize, QVarian
if(nbytes <= 4) {
const char *data = rawItem.constData();
if(nbytes < 4 || (data[0]!=0 || data[1]!=0 || data[2]!=0 || data[3]!=0)) {
if(nbytes <= 4) {
const char *data = rawItem.constData();
if(nbytes < 4 || (data[0]!=0 || data[1]!=0 || data[2]!=0 || data[3]!=0)) {
- disconnectDevice(dev, tr("
Client
sent corrupted compressed data!"));
+ disconnectDevice(dev, tr("
Peer
sent corrupted compressed data!"));
return false;
}
}
return false;
}
}
@@
-971,7
+971,7
@@
bool SignalProxy::readDataFromDevice(QIODevice *dev, quint32 &blockSize, QVarian
}
if(!item.isValid()) {
}
if(!item.isValid()) {
- disconnectDevice(dev, tr("
Client
sent corrupt data: unable to load QVariant!"));
+ disconnectDevice(dev, tr("
Peer
sent corrupt data: unable to load QVariant!"));
return false;
}
return false;
}