From: om Date: Sun, 22 Jan 2006 22:44:53 +0000 (+0000) Subject: Allow for tags with no or empty type, as well as 'clients' ones X-Git-Tag: v2.0.23~9236 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6a558db9a8a53bf1384365e475a7d6bab1078019;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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);