+static void
+stats_mapping(struct Client *to, struct StatDesc* sd, int stat, char* param)
+{
+ struct s_map *map;
+
+ send_reply(to, RPL_STATSRLINE, "Command", "Name", "Prepend", "Target");
+ for (map = GlobalServiceMapList; map; map = map->next) {
+ struct nick_host *nh;
+ for (nh = map->services; nh; nh = nh->next) {
+ send_reply(to, RPL_STATSRLINE, map->command, map->name,
+ (map->prepend ? map->prepend : "*"), nh->nick);
+ }
+ }
+}
+