Author: Ghostwolf <foxxe@trms.com>
authorJoseph Bongaarts <foxxe@wtfs.net>
Thu, 13 Apr 2000 21:56:24 +0000 (21:56 +0000)
committerJoseph Bongaarts <foxxe@wtfs.net>
Thu, 13 Apr 2000 21:56:24 +0000 (21:56 +0000)
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
include/opercmds.h
include/s_stats.h [new file with mode: 0644]

index 50b951959e5afa1ec1f5fcb17fd46a9071da760c..62c16f77878eb3d93908074421d2b457ea284583 100644 (file)
@@ -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)
index 03a69bca1e6c480cad7aad5acc3fc2890ce1c864..43a4d5b70d61ae95758239c0bba7dab010a6318a 100644 (file)
@@ -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 (file)
index 0000000..c428e29
--- /dev/null
@@ -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 */