Make webadmin show whether a Listener/port accepts IRC and/or HTTP connections.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1974 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-05-09 19:08:41 +00:00
parent 6bc45bf80f
commit 08463bedac
3 changed files with 8 additions and 1 deletions

View File

@@ -827,6 +827,9 @@ public:
l["Port"] = CString(pListener->GetPort());
l["BindHost"] = pListener->GetBindHost();
l["IsWeb"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_IRC);
l["IsIRC"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_HTTP);
#ifdef HAVE_LIBSSL
if (pListener->IsSSL()) {
l["IsSSL"] = "true";