From cafd4c6090fca8b01f4109a3699d8772db834faf Mon Sep 17 00:00:00 2001 From: rakshasa Date: Wed, 15 Nov 2006 14:05:34 +0000 Subject: [PATCH] * Added new API for client type and version info, which will replace the code currently in the client. * Fixed rtorrent.rc to show the right name for the encryption option. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@804 e378c898-3ddf-0310-93e7-cc216c733640 --- doc/rtorrent.rc | 2 +- src/display/window_peer_list.cc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/rtorrent.rc b/doc/rtorrent.rc index f5adedc2..e4271dc6 100644 --- a/doc/rtorrent.rc +++ b/doc/rtorrent.rc @@ -72,7 +72,7 @@ # outgoing connections but retries with encryption if they fail, preferring # plaintext to RC4 encryption after the encrypted handshake # -# encryption_options = allow_incoming,enable_retry,prefer_plaintext +# encryption = allow_incoming,enable_retry,prefer_plaintext # # Do not modify the following parameters unless you know what you're doing. diff --git a/src/display/window_peer_list.cc b/src/display/window_peer_list.cc index 5e43f7d0..09fd410f 100644 --- a/src/display/window_peer_list.cc +++ b/src/display/window_peer_list.cc @@ -41,6 +41,7 @@ #include #include #include +#include #include "core/download.h" #include "rak/algorithm.h" @@ -138,7 +139,11 @@ WindowPeerList::redraw() { x += 7; char buf[128]; - control->client_info()->print(buf, buf + 128, p.id().data()); + torrent::ClientInfo clientInfo = torrent::client_list()->parse_id(p.id()); + + std::strncpy(buf, clientInfo.short_description(), 128); + +// control->client_info()->print(buf, buf + 128, p.id().data()); m_canvas->print(x, y, "%s", buf);