From 2b014d61a528785fef5374627f8e841721e0e4e0 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 16 Feb 2015 22:18:39 +0000 Subject: Tox: restyled nodes list option page git-svn-id: http://svn.miranda-ng.org/main/trunk@12152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Tox/src/tox_network.cpp') diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 70ea5665c4..7d3eb4c5a2 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -8,7 +8,7 @@ bool CToxProto::IsOnline() void CToxProto::BootstrapDht() { bool isIPv4 = getBool("DisableIPv6", 0); - int nodeCount = db_get_w(NULL, "TOX", TOX_SETTINGS_NODE_COUNT, 0); + int nodeCount = db_get_w(NULL, MODULE, TOX_SETTINGS_NODE_COUNT, 0); if (!nodeCount) { tox_bootstrap_from_address( @@ -24,16 +24,16 @@ void CToxProto::BootstrapDht() for (int i = 0; i < nodeCount; i++) { mir_snprintf(setting, SIZEOF(setting), isIPv4 ? TOX_SETTINGS_NODE_IPV4 : TOX_SETTINGS_NODE_IPV6, i + 1); - ptrA address(db_get_sa(NULL, "TOX", setting)); + ptrA address(db_get_sa(NULL, MODULE, setting)); if (address == NULL && !isIPv4) { mir_snprintf(setting, SIZEOF(setting), TOX_SETTINGS_NODE_IPV4, i + 1); - address = db_get_sa(NULL, "TOX", setting); + address = db_get_sa(NULL, MODULE, setting); } mir_snprintf(setting, SIZEOF(setting), TOX_SETTINGS_NODE_PORT, i + 1); - int port = db_get_w(NULL, "TOX", setting, 0); + int port = db_get_w(NULL, MODULE, setting, 0); mir_snprintf(setting, SIZEOF(setting), TOX_SETTINGS_NODE_PKEY, i + 1); - ptrA pubKey(db_get_sa(NULL, "TOX", setting)); + ptrA pubKey(db_get_sa(NULL, MODULE, setting)); if (pubKey && address) { tox_bootstrap_from_address(tox, address, port, ToxBinAddress(pubKey)); -- cgit v1.2.3