implement IAUTH client code to query a separate server before allowing
[ircu2.10.12-pk.git] / include / map.h
index 5d539d787ced3c9a64dcac81cd9777f38c35c379..b3e34a950a3e3e7b530134859312748ac2d79c84 100644 (file)
@@ -1,10 +1,62 @@
-#ifndef MAP_H
-#define MAP_H
-
-/*=============================================================================
- * Proto types
+#ifndef INCLUDED_map_h
+#define INCLUDED_map_h
+/*
+ * IRC - Internet Relay Chat, include/map.h
+ * Copyright (C) 1990 Jarkko Oikarinen and
+ *                    University of Oulu, Computing Center
+ * Copyright (C) 2002 Joseph Bongaarts <foxxe@wtfs.net>
+ *
+ * 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 2, 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_ircd_defs_h
+#include "ircd_defs.h"
+#endif
+#ifndef INCLUDED_time_h
+#include <time.h>              /* struct tm */
+#define INCLUDED_time_h
+#endif
+#ifndef INCLUDED_sys_types_h
+#include <sys/types.h>
+#define INCLUDED_sys_types_h
+#endif
+
+
+struct Client;
+
+struct Map {
+  time_t lasttime;
+  unsigned int maxclients;
+  char name[HOSTLEN+1];
+  char info[REALLEN+1];
+  unsigned short prot;
+  struct Map *next;
+  struct Map *prev;
+};
+
+extern void map_update(struct Client *server);
+
+#ifdef HEAD_IN_SAND_LINKS
+extern void map_dump_links_head_in_sand(struct Client *sptr, char *mask);
+#endif /* HEAD_IN_SAND_LINKS */
+#ifdef HEAD_IN_SAND_MAP
+extern void map_dump_head_in_sand(struct Client *cptr);
+#endif /* HEAD_IN_SAND_MAP */
+
+extern void map_dump(struct Client *cptr, struct Client *server, char *mask, int prompt_length);
 
-extern int m_map(aClient *cptr, aClient *sptr, int parc, char *parv[]);
+#endif /* INCLUDED_motd_h */
 
-#endif /* MAP_H */