ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_stats.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_stats.c (file contents):
Revision 1925 by michael, Tue Apr 30 15:22:51 2013 UTC vs.
Revision 1927 by michael, Tue Apr 30 17:46:40 2013 UTC

# Line 245 | Line 245 | report_confitem_types(struct Client *sou
245    }
246   }
247  
248 + /* report_resv()
249 + *
250 + * inputs       - pointer to client pointer to report to.
251 + * output       - NONE
252 + * side effects - report all resvs to client.
253 + */
254 + static void
255 + report_resv(struct Client *source_p)
256 + {
257 +  dlink_node *ptr = NULL;
258 +  struct MaskItem *conf = NULL;
259 +
260 +  DLINK_FOREACH(ptr, resv_channel_list.head)
261 +  {
262 +    conf = ptr->data;
263 +    sendto_one(source_p, form_str(RPL_STATSQLINE),
264 +               me.name, source_p->name,
265 +               conf->until ? 'q' : 'Q', conf->count,
266 +               conf->name, conf->reason);
267 +  }
268 +
269 +  DLINK_FOREACH(ptr, nresv_items.head)
270 +  {
271 +    conf = ptr->data;
272 +    sendto_one(source_p, form_str(RPL_STATSQLINE),
273 +               me.name, source_p->name,
274 +               conf->until ? 'q' : 'Q', conf->count,
275 +               conf->name, conf->reason);
276 +  }
277 + }
278 +
279   /*
280   * This is part of the STATS replies. There is no offical numeric for this
281   * since this isnt an official command, in much the same way as HASH isnt.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines