From: <ps...@us...> - 2010-11-06 16:04:58
|
Revision: 2173 http://znc.svn.sourceforge.net/znc/?rev=2173&view=rev Author: psychon Date: 2010-11-06 16:04:51 +0000 (Sat, 06 Nov 2010) Log Message: ----------- 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 Modified Paths: -------------- trunk/ClientCommand.cpp Modified: trunk/ClientCommand.cpp =================================================================== --- trunk/ClientCommand.cpp 2010-11-06 15:51:58 UTC (rev 2172) +++ trunk/ClientCommand.cpp 2010-11-06 16:04:51 UTC (rev 2173) @@ -106,7 +106,26 @@ 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."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |