From e18e86e52fca1ad39e41302768ef7702d479281a Mon Sep 17 00:00:00 2001 From: Joseph Bongaarts Date: Thu, 13 Apr 2000 21:56:24 +0000 Subject: [PATCH] Author: Ghostwolf Log message: Lots of stuff... Part 1 of the m_stats changes, a slew of bug fixes, cleanups for kev's G:line changes. m_stats still has more changes coming, but I wanted to make things compilable again. Added s_stats.c/h for stats helper functions. The tree compiles now, but probably won't work. There is at least 1 bug in the gline code left. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@163 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- include/gline.h | 4 ++-- include/opercmds.h | 1 - include/s_stats.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 include/s_stats.h diff --git a/include/gline.h b/include/gline.h index 50b9519..62c16f7 100644 --- a/include/gline.h +++ b/include/gline.h @@ -72,7 +72,7 @@ extern int gline_activate(struct Client *cptr, struct Client *sptr, struct Gline *gline, time_t lastmod); extern int gline_deactivate(struct Client *cptr, struct Client *sptr, struct Gline *gline, time_t lastmod); -extern struct Gline *gline_find(char *userhost); +extern struct Gline *gline_find(char *userhost, unsigned int flags); extern struct Gline *gline_lookup(struct Client *cptr); extern void gline_free(struct Gline *gline); extern void gline_burst(struct Client *cptr); @@ -80,7 +80,7 @@ extern int gline_resend(struct Client *cptr, struct Gline *gline); extern int gline_list(struct Client *sptr, char *userhost); extern void gline_stats(struct Client *sptr); -#ifdef 0 /* forget it! */ +#if 0 /* forget it! */ #define SetActive(g) ((g)->gl_flags |= GLINE_ACTIVE) #define ClearActive(g) ((g)->gl_flags &= ~GLINE_ACTIVE) #define SetGlineIsIpMask(g) ((g)->gl_flags |= GLINE_IPMASK) diff --git a/include/opercmds.h b/include/opercmds.h index 03a69bc..43a4d5b 100644 --- a/include/opercmds.h +++ b/include/opercmds.h @@ -23,7 +23,6 @@ struct Client; * Proto types */ -extern void report_configured_links(struct Client* sptr, int mask); extern char *militime(char* sec, char* usec); #endif /* INCLUDED_opercmds_h */ diff --git a/include/s_stats.h b/include/s_stats.h new file mode 100644 index 0000000..c428e29 --- /dev/null +++ b/include/s_stats.h @@ -0,0 +1,35 @@ +/* + * IRC - Internet Relay Chat, include/s_stats.h + * Copyright (C) 2000 Joseph Bongaarts + * + * See file AUTHORS in IRC package for additional names of + * the programmers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 1, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * $Id$ + */ + +#ifndef INCLUDED_s_stats_h +#define INCLUDED_s_stats_h + +struct Client; + +extern const char *statsinfo[]; +extern void report_stats(struct Client *sptr, char stat); +extern void report_configured_links(struct Client *sptr, int mask); +extern int hunt_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[], char stat); + +#endif /* INCLUDED_s_stats_h */ -- 2.20.1