Add a list of znc features to /znc version

/znc version now also tells you something like this:

 <*status> IPv6: yes, SSL: yes, c-ares: yes


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2173 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-11-06 16:04:51 +00:00
parent ed924cb9e5
commit cce5824439

View File

@@ -106,7 +106,26 @@ void CClient::UserCommand(CString& sLine) {
PutStatus("Detaching you from [" + sChan + "]"); PutStatus("Detaching you from [" + sChan + "]");
pChan->DetachUser(); pChan->DetachUser();
} else if (sCommand.Equals("VERSION")) { } else if (sCommand.Equals("VERSION")) {
const char *features = "IPv6: "
#ifdef HAVE_IPV6
"yes"
#else
"no"
#endif
", SSL: "
#ifdef HAVE_LIBSSL
"yes"
#else
"no"
#endif
", c-ares: "
#ifdef HAVE_C_ARES
"yes";
#else
"no";
#endif
PutStatus(CZNC::GetTag()); PutStatus(CZNC::GetTag());
PutStatus(features);
} else if (sCommand.Equals("MOTD") || sCommand.Equals("ShowMOTD")) { } else if (sCommand.Equals("MOTD") || sCommand.Equals("ShowMOTD")) {
if (!SendMotd()) { if (!SendMotd()) {
PutStatus("There is no MOTD set."); PutStatus("There is no MOTD set.");