summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_gnutls.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-27 02:08:17 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-27 02:08:17 +0000
commite9f2476e65b5aac0fbb74e22b83ce8362adc434c (patch)
tree81a038fad0689336c578e41f4059c5499c4856c3 /src/modules/extra/m_ssl_gnutls.cpp
parent3111c6053e3e23a136e79eace79f530e368bdfd7 (diff)
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
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
1 files changed, 1 insertions, 1 deletions
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
{