mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user