From cce5824439a379bf1deb75a4810295a373a229de Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 6 Nov 2010 16:04:51 +0000 Subject: [PATCH] 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 --- ClientCommand.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ClientCommand.cpp b/ClientCommand.cpp index 67de9a0a..0dda5ab0 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -106,7 +106,26 @@ void CClient::UserCommand(CString& sLine) { PutStatus("Detaching you from [" + sChan + "]"); pChan->DetachUser(); } 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(features); } else if (sCommand.Equals("MOTD") || sCommand.Equals("ShowMOTD")) { if (!SendMotd()) { PutStatus("There is no MOTD set.");