summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_sqloper.cpp2
-rw-r--r--src/modules/extra/m_ssl_oper_cert.cpp6
-rw-r--r--src/modules/extra/m_sslinfo.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index 01ff0b3d4..c74461f7d 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -259,7 +259,7 @@ public:
user->ChangeDisplayedHost(operhost.c_str());
ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s", user->nick, user->ident, user->host, type.c_str());
- user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiouAEIOU", type[0]) ? "an" : "a", irc::Spacify(type.c_str()));
+ user->WriteNumeric(381, "%s :You are now %s %s",user->nick, strchr("aeiouAEIOU", type[0]) ? "an" : "a", irc::Spacify(type.c_str()));
if (!user->modes[UM_OPERATOR])
user->Oper(type, tname);
diff --git a/src/modules/extra/m_ssl_oper_cert.cpp b/src/modules/extra/m_ssl_oper_cert.cpp
index abf8c5d4a..026c9ec31 100644
--- a/src/modules/extra/m_ssl_oper_cert.cpp
+++ b/src/modules/extra/m_ssl_oper_cert.cpp
@@ -60,7 +60,7 @@ class cmd_fingerprint : public Command
}
else
{
- user->WriteServ("401 %s %s :No such nickname", user->nick, parameters[0]);
+ user->WriteNumeric(401, "%s %s :No such nickname", user->nick, parameters[0]);
return CMD_FAILURE;
}
}
@@ -150,14 +150,14 @@ class ModuleOperSSLCert : public Module
{
if (SSLOnly && !user->GetExt("ssl", dummy))
{
- user->WriteServ("491 %s :This oper login name requires an SSL connection.", user->nick);
+ user->WriteNumeric(491, "%s :This oper login name requires an SSL connection.", user->nick);
return 1;
}
/* This oper would match */
if ((!cert) || (cert->GetFingerprint() != FingerPrint))
{
- user->WriteServ("491 %s :This oper login name requires a matching key fingerprint.",user->nick);
+ user->WriteNumeric(491, "%s :This oper login name requires a matching key fingerprint.",user->nick);
ServerInstance->SNO->WriteToSnoMask('o',"'%s' cannot oper, does not match fingerprint", user->nick);
ServerInstance->Logs->Log("m_ssl_oper_cert",DEFAULT,"OPER: Failed oper attempt by %s!%s@%s: credentials valid, but wrong fingerprint.",user->nick,user->ident,user->host);
return 1;
diff --git a/src/modules/extra/m_sslinfo.cpp b/src/modules/extra/m_sslinfo.cpp
index b16c7f0ee..907950db1 100644
--- a/src/modules/extra/m_sslinfo.cpp
+++ b/src/modules/extra/m_sslinfo.cpp
@@ -58,7 +58,7 @@ class cmd_sslinfo : public Command
}
}
else
- user->WriteServ("401 %s %s :No such nickname", user->nick, parameters[0]);
+ user->WriteNumeric(401, "%s %s :No such nickname", user->nick, parameters[0]);
return CMD_FAILURE;
}