summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_network.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-02-18 17:45:59 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-02-18 17:45:59 +0000
commita8bb7b8d1f606b887c614d6200840fffb1bd48aa (patch)
tree39edcab678f9da538f4516cf55275315c6c79b33 /protocols/Tox/src/tox_network.cpp
parent64e4c45c42ce093c7e6e9a99a5a0938dc212aa59 (diff)
fixed label size in options
profile import work only when protocol offline warning when importing in existing profile git-svn-id: http://svn.miranda-ng.org/main/trunk@12182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r--protocols/Tox/src/tox_network.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index 19d90b719b..72f090fe76 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -5,6 +5,11 @@ bool CToxProto::IsOnline()
return isConnected && m_iStatus > ID_STATUS_OFFLINE;
}
+bool CToxProto::IsOffline()
+{
+ return !isConnected && m_iStatus == ID_STATUS_OFFLINE;
+}
+
void CToxProto::BootstrapDht()
{
debugLogA("CToxProto::BootstrapDht: bootstraping DHT");