summaryrefslogtreecommitdiff
path: root/modules/m_module.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-19 19:16:09 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-19 19:16:09 +0000
commitf27e1d9b7ee2cbd16bbdadf35872ef39f0527aac (patch)
treedf119cb19885ea1eed8c994ed1568858c8064474 /modules/m_module.c
parent6b18f4241216eee3ea96ac807509bbd246a534f5 (diff)
- Made all numeric defines use the actual string instead of the numeric value
which allows to use gcc's printf format attribute - Remove current message locale implementation git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1832 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_module.c')
-rw-r--r--modules/m_module.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/m_module.c b/modules/m_module.c
index b8ec8dd..913ae0c 100644
--- a/modules/m_module.c
+++ b/modules/m_module.c
@@ -64,14 +64,14 @@ mo_module(struct Client *client_p, struct Client *source_p,
if (!HasOFlag(source_p, OPER_FLAG_MODULE))
{
- sendto_one(source_p, form_str(ERR_NOPRIVILEGES),
+ sendto_one(source_p, ERR_NOPRIVILEGES,
me.name, source_p->name);
return;
}
if (EmptyString(parv[1]))
{
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
+ sendto_one(source_p, ERR_NEEDMOREPARAMS,
me.name, source_p->name, "MODULE");
return;
}
@@ -80,7 +80,7 @@ mo_module(struct Client *client_p, struct Client *source_p,
{
if (EmptyString(parv[2]))
{
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
+ sendto_one(source_p, ERR_NEEDMOREPARAMS,
me.name, source_p->name, "MODULE");
return;
}
@@ -100,7 +100,7 @@ mo_module(struct Client *client_p, struct Client *source_p,
{
if (EmptyString(parv[2]))
{
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
+ sendto_one(source_p, ERR_NEEDMOREPARAMS,
me.name, source_p->name, "MODULE");
return;
}
@@ -138,7 +138,7 @@ mo_module(struct Client *client_p, struct Client *source_p,
{
if (EmptyString(parv[2]))
{
- sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
+ sendto_one(source_p, ERR_NEEDMOREPARAMS,
me.name, source_p->name, "MODULE");
return;
}
@@ -220,12 +220,12 @@ mo_module(struct Client *client_p, struct Client *source_p,
if (!EmptyString(parv[2]) && match(parv[2], modp->name))
continue;
- sendto_one(source_p, form_str(RPL_MODLIST), me.name, source_p->name,
+ sendto_one(source_p, RPL_MODLIST, me.name, source_p->name,
modp->name, modp->handle,
modp->version, (modp->flags & MODULE_FLAG_CORE) ?"(core)":"");
}
- sendto_one(source_p, form_str(RPL_ENDOFMODLIST),
+ sendto_one(source_p, RPL_ENDOFMODLIST,
me.name, source_p->name);
return;
}