mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add SSL/IPv6/DNS info to znc --version
This commit is contained in:
@@ -124,26 +124,8 @@ void CClient::UserCommand(CString& sLine) {
|
||||
PutStatus("There were [" + CString(uMatches) + "] channels matching [" + sChan + "]");
|
||||
PutStatus("Detached [" + CString(uDetached) + "] channels");
|
||||
} else if (sCommand.Equals("VERSION")) {
|
||||
const char *features = "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
|
||||
PutStatus(CZNC::GetTag());
|
||||
PutStatus(features);
|
||||
PutStatus(CZNC::GetCompileOptionsString());
|
||||
} else if (sCommand.Equals("MOTD") || sCommand.Equals("ShowMOTD")) {
|
||||
if (!SendMotd()) {
|
||||
PutStatus("There is no MOTD set.");
|
||||
|
||||
Reference in New Issue
Block a user