Author: Andres Miller <a1kmm@mware.virtualave.net>
[ircu2.10.12-pk.git] / include / s_conf.h
index 7742f93568007bf9dbfb5f1950a7d21c0b92f714..6a89ab9142a64386fcc331229190ef1b05594dfb 100644 (file)
@@ -83,12 +83,15 @@ struct DenyConf {
   char*               hostmask;
   char*               message;
   char*               usermask;
-  unsigned int        s_addr;
-  char                is_file;
-  char                ip_kill;
+  unsigned int        address;
+  unsigned int        flags;
   char                bits;        /* Number of bits for ipkills */
 };
 
+#define DENY_FLAGS_FILE     0x0001 /* Comment is a filename */
+#define DENY_FLAGS_IP       0x0002 /* K-line by IP address */
+#define DENY_FLAGS_REALNAME 0x0004 /* K-line by real name */
+
 /*
  * A line: A:<line 1>:<line 2>:<line 3>
  */
@@ -145,6 +148,7 @@ enum AuthorizationCheckResult {
   ACR_BAD_SOCKET
 };
 
+
 /*
  * GLOBALS
  */
@@ -186,4 +190,6 @@ extern int find_kill(struct Client *cptr);
 extern int find_restrict(struct Client *cptr);
 extern struct MotdItem* read_motd(const char* motdfile);
 
+extern void yyerror(const char *msg);
+
 #endif /* INCLUDED_s_conf_h */