From 6a558db9a8a53bf1384365e475a7d6bab1078019 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 22 Jan 2006 22:44:53 +0000 Subject: [PATCH] Allow for tags with no or empty type, as well as 'clients' ones git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2845 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index d3992429b..2bdb0a24e 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -99,7 +99,7 @@ class ModuleSSL : public Module for(int i = 0; i < Conf->Enumerate("bind"); i++) { // For each tag - if((Conf->ReadValue("bind", "type", i) == "clients") && (Conf->ReadValue("bind", "ssl", i) == "gnutls")) + if(((Conf->ReadValue("bind", "type", i) == "") || (Conf->ReadValue("bind", "type", i) == "clients")) && (Conf->ReadValue("bind", "ssl", i) == "gnutls")) { // Get the port we're meant to be listening on with SSL unsigned int port = Conf->ReadInteger("bind", "port", i, true); -- 2.39.5