]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/opserv.h
Couple of srvx updates.
[irc/evilnet/x3.git] / src / opserv.h
index d78db9c539d2a5c3190aa90b5c870dd13e89b568..616fc1326582176c44e84e3105ee89b7bab0d752 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 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 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -23,7 +23,7 @@
 
 #define DEFCON_NO_NEW_CHANNELS          1       /* No New Channel Registrations */
 #define DEFCON_NO_NEW_NICKS             2       /* No New Nick Registrations */
-#define DEFCON_NO_MODE_CHANGE           4       /* No SET MODE changes */
+#define DEFCON_NO_MODE_CHANGE           4       /* No channel MODE changes */
 #define DEFCON_FORCE_CHAN_MODES         8       /* Force Chan Mode */
 #define DEFCON_REDUCE_SESSION           16      /* Reduce Session Limit */
 #define DEFCON_NO_NEW_CLIENTS           32      /* Kill any NEW clients */
 #define DEFCON_SILENT_OPER_ONLY         128     /* Silently ignore non-opers */
 #define DEFCON_GLINE_NEW_CLIENTS        256     /* Gline any new clients */
 #define DEFCON_NO_NEW_MEMOS             512     /* No New Memos Sent */
+#define DEFCON_SHUN_NEW_CLIENTS         1024    /* Shun any new clients */
 
 extern int DefCon[6];
 extern int checkDefCon(int level);
 extern void DefConProcess(struct userNode *user);
 extern void defcon_timeout(UNUSED_ARG(void *data));
+
 void init_opserv(const char *nick);
 unsigned int gag_create(const char *mask, const char *owner, const char *reason, time_t expires);
 int opserv_bad_channel(const char *name);
@@ -45,5 +47,7 @@ void routing_handle_connect_failure(struct server *source, char *server, char *m
 int activate_routing(struct svccmd *cmd, struct userNode *user, char *plan_name);
 void routing_handle_squit(char *server, char* uplink, char *message);
 void routing_handle_connect(char *server, char *uplink);
+void reroute_timer_reset(unsigned int time);
+void routing_init();
 
 #endif