From e9f2476e65b5aac0fbb74e22b83ce8362adc434c Mon Sep 17 00:00:00 2001 From: special Date: Mon, 27 Jul 2009 02:08:17 +0000 Subject: Send a failure numeric instead of QuitUser when STARTTLS is used after registration, because it could be used accidentally by users. Suggested by dKingston git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11445 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 c9dd6d37e..c81be9f7b 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -73,7 +73,7 @@ class CommandStartTLS : public Command */ if (user->registered != REG_NONE) { - ServerInstance->Users->QuitUser(user, "STARTTLS is not permitted after client registration has started"); + user->WriteNumeric(691, "%s :STARTTLS is not permitted after client registration has started", user->nick.c_str()); } else { -- cgit v1.2.3