+jilles 2007/07/30 17:26:00 UTC (20070730-3540)
+ Log:
+ Fix wrong line numbers in ircd.conf parser (some comments).
+ from ratbox 2.2 (androsyn).
+
+
+ Changes: Modified:
+ +1 -0 trunk/src/ircd_lexer.l (File Modified)
+
+
jilles 2007/07/26 14:21:57 UTC (20070726-3538)
Log:
Change EmptyString so gcc 4.2 doesn't complain.
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: s_serv.c 3446 2007-05-14 22:21:16Z jilles $
+ * $Id: s_serv.c 3542 2007-08-01 20:18:12Z jilles $
*/
#include "stdinc.h"
client_p->localClient->firsttime = CurrentTime;
/* fixing eob timings.. -gnp */
+ if((dlink_list_length(&lclient_list) + dlink_list_length(&serv_list)) >
+ (unsigned long)MaxConnectionCount)
+ MaxConnectionCount = dlink_list_length(&lclient_list) +
+ dlink_list_length(&serv_list);
+
/* Show the real host/IP to admins */
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"Link with %s established: (%s) link",
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: s_user.c 3446 2007-05-14 22:21:16Z jilles $
+ * $Id: s_user.c 3542 2007-08-01 20:18:12Z jilles $
*/
#include "stdinc.h"
int
show_lusers(struct Client *source_p)
{
+ if(dlink_list_length(&lclient_list) > (unsigned long)MaxClientCount)
+ MaxClientCount = dlink_list_length(&lclient_list);
+
+ if((dlink_list_length(&lclient_list) + dlink_list_length(&serv_list)) >
+ (unsigned long)MaxConnectionCount)
+ MaxConnectionCount = dlink_list_length(&lclient_list) +
+ dlink_list_length(&serv_list);
+
sendto_one_numeric(source_p, RPL_LUSERCLIENT, form_str(RPL_LUSERCLIENT),
(Count.total - Count.invisi),
Count.invisi, dlink_list_length(&global_serv_list));
MaxConnectionCount, MaxClientCount,
Count.totalrestartcount);
- if(dlink_list_length(&lclient_list) > (unsigned long)MaxClientCount)
- MaxClientCount = dlink_list_length(&lclient_list);
-
- if((dlink_list_length(&lclient_list) + dlink_list_length(&serv_list)) >
- (unsigned long)MaxConnectionCount)
- MaxConnectionCount = dlink_list_length(&lclient_list) +
- dlink_list_length(&serv_list);
-
return 0;
}