diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-19 19:16:09 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-19 19:16:09 +0000 |
commit | f27e1d9b7ee2cbd16bbdadf35872ef39f0527aac (patch) | |
tree | df119cb19885ea1eed8c994ed1568858c8064474 /modules/m_map.c | |
parent | 6b18f4241216eee3ea96ac807509bbd246a534f5 (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_map.c')
-rw-r--r-- | modules/m_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 = { |