diff options
author | Adam <Adam@anope.org> | 2013-11-12 06:51:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-12 06:51:31 -0500 |
commit | 6c7a3ceb6c674a9af09da955ee0238e9291cf29a (patch) | |
tree | c9fd79d5814685e43f5d9ade75cad5f11da06364 /src/modules/extra/m_ssl_gnutls.cpp | |
parent | 407f8ef1391e5d09e99e0abfc570389decc3ce2d (diff) |
Use WriteNumeric() everywhere we send numerics and include the user's nick automatically
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 5c30d6f57..2924b0902 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -557,19 +557,19 @@ class CommandStartTLS : public SplitCommand { if (!enabled) { - user->WriteNumeric(691, "%s :STARTTLS is not enabled", user->nick.c_str()); + user->WriteNumeric(691, ":STARTTLS is not enabled"); return CMD_FAILURE; } if (user->registered == REG_ALL) { - user->WriteNumeric(691, "%s :STARTTLS is not permitted after client registration is complete", user->nick.c_str()); + user->WriteNumeric(691, ":STARTTLS is not permitted after client registration is complete"); } else { if (!user->eh.GetIOHook()) { - user->WriteNumeric(670, "%s :STARTTLS successful, go ahead with TLS handshake", user->nick.c_str()); + user->WriteNumeric(670, ":STARTTLS successful, go ahead with TLS handshake"); /* We need to flush the write buffer prior to adding the IOHook, * otherwise we'll be sending this line inside the SSL session - which * won't start its handshake until the client gets this line. Currently, @@ -583,7 +583,7 @@ class CommandStartTLS : public SplitCommand hook.OnStreamSocketAccept(&user->eh, NULL, NULL); } else - user->WriteNumeric(691, "%s :STARTTLS failure", user->nick.c_str()); + user->WriteNumeric(691, ":STARTTLS failure"); } return CMD_FAILURE; |