diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-27 02:08:17 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-27 02:08:17 +0000 |
commit | e9f2476e65b5aac0fbb74e22b83ce8362adc434c (patch) | |
tree | 81a038fad0689336c578e41f4059c5499c4856c3 | |
parent | 3111c6053e3e23a136e79eace79f530e368bdfd7 (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
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 |
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 { |