Add SSL/IPv6/DNS info to znc --version

This commit is contained in:
Alexey Sokolov
2012-03-15 01:38:37 +07:00
parent 91e2256377
commit 819776873d
4 changed files with 26 additions and 19 deletions
+23
View File
@@ -92,6 +92,29 @@ CString CZNC::GetTag(bool bIncludeVersion) {
return szBuf;
}
CString CZNC::GetCompileOptionsString() {
return
"IPv6: "
#ifdef HAVE_IPV6
"yes"
#else
"no"
#endif
", SSL: "
#ifdef HAVE_LIBSSL
"yes"
#else
"no"
#endif
", DNS: "
#ifdef HAVE_THREADED_DNS
"threads"
#else
"blocking"
#endif
;
}
CString CZNC::GetUptime() const {
time_t now = time(NULL);
return CString::ToTimeStr(now - TimeStarted());