X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..c3fed903fd45d9f3bc68af170e6e3da2b9033432:/modules/m_map.c?ds=sidebyside diff --git a/modules/m_map.c b/modules/m_map.c index 423f055f..256e3ad6 100644 --- a/modules/m_map.c +++ b/modules/m_map.c @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_map.c 254 2005-09-21 23:35:12Z nenolod $ + * $Id: m_map.c 3368 2007-04-03 10:11:06Z nenolod $ */ #include "stdinc.h" @@ -29,6 +29,7 @@ #include "send.h" #include "s_conf.h" #include "sprintf_irc.h" +#include "scache.h" #define USER_COL 50 /* display | Users: %d at col 50 */ @@ -41,7 +42,7 @@ struct Message map_msgtab = { }; mapi_clist_av1 map_clist[] = { &map_msgtab, NULL }; -DECLARE_MODULE_AV1(map, NULL, NULL, map_clist, NULL, NULL, "$Revision: 254 $"); +DECLARE_MODULE_AV1(map, NULL, NULL, map_clist, NULL, NULL, "$Revision: 3368 $"); static void dump_map(struct Client *client_p, struct Client *root, char *pbuf); @@ -61,7 +62,7 @@ m_map(struct Client *client_p, struct Client *source_p, int parc, const char *pa } dump_map(client_p, &me, buf); - sendto_one(client_p, form_str(RPL_MAPEND), me.name, client_p->name); + sendto_one_numeric(client_p, RPL_MAPEND, form_str(RPL_MAPEND)); return 0; } @@ -73,7 +74,8 @@ static int mo_map(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { dump_map(client_p, &me, buf); - sendto_one(client_p, form_str(RPL_MAPEND), me.name, client_p->name); + scache_send_missing(client_p); + sendto_one_numeric(client_p, RPL_MAPEND, form_str(RPL_MAPEND)); return 0; } @@ -112,7 +114,7 @@ dump_map(struct Client *client_p, struct Client *root_p, char *pbuf) " | Users: %5lu (%4.1f%%)", dlink_list_length(&root_p->serv->users), 100 * (float) dlink_list_length(&root_p->serv->users) / (float) Count.total); - sendto_one(client_p, form_str(RPL_MAP), me.name, client_p->name, buf); + sendto_one_numeric(client_p, RPL_MAP, form_str(RPL_MAP), buf); if(root_p->serv->servers.head != NULL) {