aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/libkvidcc.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2014-12-28 22:56:07 +0000
committerGravatar Szymon Tomasz Stefanek2014-12-28 22:56:07 +0000
commit60e00ddd6e77a43e95a161168f1727ebcbe0f610 (patch)
tree0db9802a519380698d1d4941300843581e9cdf5b /src/modules/dcc/libkvidcc.cpp
parentMerge patch by TheReign (diff)
downloadKVIrc-60e00ddd6e77a43e95a161168f1727ebcbe0f610.tar.gz
KVIrc-60e00ddd6e77a43e95a161168f1727ebcbe0f610.tar.bz2
KVIrc-60e00ddd6e77a43e95a161168f1727ebcbe0f610.zip
Merge patch by TheReign
* Fixes most of the bugs in DCC send support for files larger than 4GiB. I doubt I found them all, but it catches all of the ones I needed for myself. * NOTE: I confess I probably didn't choose the best solution for this, but it seems to do what is needed. * NOTE: The better solution may be to add 64-bit number support to sendFmtData() git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6415 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dcc/libkvidcc.cpp')
-rw-r--r--src/modules/dcc/libkvidcc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/dcc/libkvidcc.cpp b/src/modules/dcc/libkvidcc.cpp
index fe17027ef..74aded7c5 100644
--- a/src/modules/dcc/libkvidcc.cpp
+++ b/src/modules/dcc/libkvidcc.cpp
@@ -970,12 +970,13 @@ static bool dcc_kvs_cmd_get(KviKvsModuleCommandCall * c)
c->window()->console()->connection()->encodeText(szFileName).data(),
0x01);
} else {
- c->window()->console()->connection()->sendFmtData("PRIVMSG %s :%cDCC %s %s %u%c",
+ c->window()->console()->connection()->sendFmtData("PRIVMSG %s :%cDCC %s %s %s%c",
c->window()->console()->connection()->encodeText(szTarget).data(),
0x01,
c->window()->console()->connection()->encodeText(szDCC.ptr()).data(),
c->window()->console()->connection()->encodeText(szFileName).data(),
- uSize,0x01);
+ c->window()->console()->connection()->encodeText(QString::number(uSize)).data(),
+ 0x01);
}
return true;