From f27e1d9b7ee2cbd16bbdadf35872ef39f0527aac Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 19 Apr 2013 19:16:09 +0000 Subject: - 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 --- modules/m_map.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/m_map.c') diff --git a/modules/m_map.c b/modules/m_map.c index 4d5c9ab..58497ba 100644 --- a/modules/m_map.c +++ b/modules/m_map.c @@ -76,7 +76,7 @@ dump_map(struct Client *client_p, const struct Client *root_p, sprintf(pb, " Users: %5d (%1.1f%%)", users, 100 * (float)users / (float)Count.total); - sendto_one(client_p, form_str(RPL_MAP), me.name, client_p->name, buf); + sendto_one(client_p, RPL_MAP, me.name, client_p->name, buf); if (root_p->serv->server_list.head) { @@ -133,7 +133,7 @@ m_map(struct Client *client_p, struct Client *source_p, if ((last_used + ConfigFileEntry.pace_wait) > CurrentTime) { /* safe enough to give this on a local connect only */ - sendto_one(source_p, form_str(RPL_LOAD2HI), + sendto_one(source_p, RPL_LOAD2HI, me.name, source_p->name); return; } @@ -141,7 +141,7 @@ m_map(struct Client *client_p, struct Client *source_p, last_used = CurrentTime; dump_map(source_p, &me, 0, buf); - sendto_one(source_p, form_str(RPL_MAPEND), me.name, source_p->name); + sendto_one(source_p, RPL_MAPEND, me.name, source_p->name); } /* mo_map() @@ -152,7 +152,7 @@ mo_map(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { dump_map(source_p, &me, 0, buf); - sendto_one(source_p, form_str(RPL_MAPEND), me.name, source_p->name); + sendto_one(source_p, RPL_MAPEND, me.name, source_p->name); } static struct Message map_msgtab = { -- cgit