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 8409 by michael, Wed Mar 21 16:55:33 2018 UTC vs.
Revision 8437 by michael, Thu Mar 29 09:05:34 2018 UTC

# Line 433 | Line 433 | stats_memory(struct Client *source_p, in
433                       "z :iphash %u(%zu)",
434                       number_ips_stored, mem_ips_stored);
435  
436 <  local_client_memory_used = local_client_count *(sizeof(struct Client) + sizeof(struct Connection));
436 >  local_client_memory_used = local_client_count * (sizeof(struct Client) + sizeof(struct Connection));
437    sendto_one_numeric(source_p, &me, RPL_STATSDEBUG | SND_EXPLICIT,
438                       "z :Local client Memory in use: %u(%zu)",
439                       local_client_count, local_client_memory_used);
# Line 1290 | Line 1290 | do_stats(struct Client *source_p, int pa
1290  
1291    if ((tab = stats_map[statchar]))
1292    {
1293 <    if (!tab->required_modes || HasUMode(source_p, tab->required_modes))
1293 >    if (tab->required_modes == 0 || HasUMode(source_p, tab->required_modes))
1294        tab->handler(source_p, parc, parv);
1295      else
1296        sendto_one_numeric(source_p, &me, ERR_NOPRIVILEGES);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines