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

Comparing ircd-hybrid-7.3/src/s_user.c (file contents):
Revision 1137 by michael, Sun May 29 19:04:06 2011 UTC vs.
Revision 1143 by michael, Mon Jul 25 18:58:51 2011 UTC

# Line 54 | Line 54
54   #include "msg.h"
55   #include "watch.h"
56  
57 < unsigned int MaxClientCount     = 1;
58 < unsigned int MaxConnectionCount = 1;
57 >
58   struct Callback *entering_umode_cb = NULL;
59   struct Callback *umode_cb = NULL;
60  
# Line 234 | Line 233 | show_lusers(struct Client *source_p)
233  
234    if (!ConfigServerHide.hide_servers || IsOper(source_p))
235      sendto_one(source_p, form_str(RPL_STATSCONN), from, to,
236 <               MaxConnectionCount, MaxClientCount, Count.totalrestartcount);
236 >               Count.max_loc_con, Count.max_loc_cli, Count.totalrestartcount);
237  
238 <  if (Count.local > MaxClientCount)
239 <    MaxClientCount = Count.local;
238 >  if (Count.local > Count.max_loc_cli)
239 >    Count.max_loc_cli = Count.local;
240  
241 <  if ((Count.local + Count.myserver) > MaxConnectionCount)
242 <    MaxConnectionCount = Count.local + Count.myserver;
241 >  if ((Count.local + Count.myserver) > Count.max_loc_con)
242 >    Count.max_loc_con = Count.local + Count.myserver;
243   }
244  
245   /* show_isupport()

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)