summaryrefslogtreecommitdiff
path: root/modules/m_challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_challenge.c')
-rw-r--r--modules/m_challenge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c
index 8b9fcfb..9965b8e 100644
--- a/modules/m_challenge.c
+++ b/modules/m_challenge.c
@@ -82,7 +82,7 @@ m_challenge(struct Client *client_p, struct Client *source_p,
if (irccmp(source_p->localClient->response, ++parv[1]))
{
- sendto_one(source_p, ERR_PASSWDMISMATCH, me.name,
+ sendto_one(source_p, form_str(ERR_PASSWDMISMATCH), me.name,
source_p->name);
failed_challenge_notice(source_p, source_p->localClient->auth_oper,
"challenge failed");
@@ -94,7 +94,7 @@ m_challenge(struct Client *client_p, struct Client *source_p,
if (conf == NULL)
{
/* XXX: logging */
- sendto_one (source_p, ERR_NOOPERHOST, me.name, source_p->name);
+ sendto_one (source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);
return;
}
@@ -128,7 +128,7 @@ m_challenge(struct Client *client_p, struct Client *source_p,
if (!conf)
{
- sendto_one (source_p, ERR_NOOPERHOST, me.name, source_p->name);
+ sendto_one (source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);
conf = find_exact_name_conf(CONF_OPER, NULL, parv[1], NULL, NULL);
failed_challenge_notice(source_p, parv[1], (conf != NULL)
? "host mismatch" : "no oper {} block");
@@ -145,7 +145,7 @@ m_challenge(struct Client *client_p, struct Client *source_p,
if (!generate_challenge(&challenge, &(source_p->localClient->response),
conf->rsa_public_key))
- sendto_one(source_p, RPL_RSACHALLENGE,
+ sendto_one(source_p, form_str(RPL_RSACHALLENGE),
me.name, source_p->name, challenge);
source_p->localClient->auth_oper = xstrdup(conf->name);
@@ -156,7 +156,7 @@ static void
mo_challenge(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
- sendto_one(source_p, RPL_YOUREOPER,
+ sendto_one(source_p, form_str(RPL_YOUREOPER),
me.name, source_p->name);
}