]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas.h
Update README.
[irc/quakenet/newserv.git] / whowas / whowas.h
index 2a6b0e550f17384307c58ce9b0f4d2f24bdf9e91..8d02892a7f1f8e6c73006b0917de1b08bcd23bf5 100644 (file)
@@ -2,6 +2,7 @@
 #define __WHOWAS_H
 
 #define WW_MAXAGE 3600
+#define WW_MAXCHANNELS 20
 #define WW_MAXENTRIES 100000
 #define WW_MASKLEN (HOSTLEN + USERLEN + NICKLEN)
 #define WW_REASONLEN 512
@@ -10,6 +11,7 @@ typedef struct whowas {
   int type;
   time_t timestamp;
   nick nick; /* unlinked nick */
+  chanindex *channels[WW_MAXCHANNELS];
 
   /* WHOWAS_QUIT or WHOWAS_KILL */
   sstring *reason;
@@ -27,15 +29,17 @@ extern whowas whowasrecs[WW_MAXENTRIES];
 extern int whowasoffset; /* points to oldest record */
 
 #define WHOWAS_UNUSED 0
-#define WHOWAS_QUIT 1
-#define WHOWAS_KILL 2
-#define WHOWAS_RENAME 3
+#define WHOWAS_USED 1
+#define WHOWAS_QUIT 2
+#define WHOWAS_KILL 3
+#define WHOWAS_RENAME 4
 
 whowas *whowas_fromnick(nick *np, int standalone);
 nick *whowas_tonick(whowas *ww);
 void whowas_freenick(nick *np);
 whowas *whowas_chase(const char *target, int maxage);
 const char *whowas_format(whowas *ww);
+const char *whowas_formatchannels(whowas *ww);
 void whowas_clean(whowas *ww);
 void whowas_free(whowas *ww);