]> jfr.im git - irc/quakenet/newserv.git/blobdiff - regexgline/regexgline.h
CHANSERV: qusers should be a chansearch search term, not usersearch
[irc/quakenet/newserv.git] / regexgline / regexgline.h
index 74895e6d2d3b11bc17497068e20c1cbc192f00b1..3da4a5e840ea5248568a7d1dcd041a0be0eee088 100644 (file)
@@ -47,6 +47,10 @@ typedef struct rg_struct {
   long             glineid;   /* gline ID */
   const char       *class;    /* class of gline */
   unsigned long    hits;      /* hits since we were loaded */
+  unsigned long    hitssaved; /* hits (persistent) */
+  unsigned int     marker;    /* newserv style marker */
+  time_t           lastseen;  /* ... */
+  short            dirty;     /* whether or not we need to flush to the db */
   struct rg_struct *next;     /* ... pointer to next item */
 } rg_struct;
 
@@ -71,13 +75,13 @@ void rg_dbload(void);
 
 void rg_freestruct(struct rg_struct *rp);
 struct rg_struct *rg_newstruct(time_t expires);
-struct rg_struct *rg_newsstruct(unsigned long id, char *mask, char *setby, char *reason, char *expires, char *type, time_t iexpires, char *class);
+struct rg_struct *rg_newsstruct(unsigned long id, char *mask, char *setby, char *reason, char *expires, char *type, time_t iexpires, char *class, time_t lastseen, unsigned int hitssaved);
 
-void rg_displaygline(nick *np, struct rg_struct *rp);
+void rg_displaygline(nick *np, struct rg_struct *rp, int longest);
 
 void rg_checkexpiry(void *arg);
 
-void rg_logevent(nick *np, char *event, char *details, ...);
+void rg_logevent(nick *np, char *event, char *details, ...) __attribute__ ((format (printf, 3, 4)));
 void rg_loggline(struct rg_struct *rg, nick *np);
 
 unsigned char rc_hexlookup[256] = {