X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/fd20b142fcf1d4bd7ee96b7d79a20fd54573cf16..928e5a35af3dc82bdfbdd041dd3160e0a59aa01d:/src/chanserv.h?ds=sidebyside diff --git a/src/chanserv.h b/src/chanserv.h index b0e5761..4761993 100644 --- a/src/chanserv.h +++ b/src/chanserv.h @@ -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, @@ -69,6 +69,7 @@ enum charOption { #define CHANNEL_PEON_INVITE 0x00000080 /* (1 << 7) - DEPRECATED */ #define CHANNEL_OFFCHANNEL 0x00000100 /* (1 << 8) */ #define CHANNEL_HOP_ALL 0x00000200 /* (1 << 9) */ +#define CHANNEL_UNREVIEWED 0x00000400 /* (1 << 9) */ /* Flags with values over 0x20000000 or (1 << 29) will not work * because chanData.flags is a 30-bit field. */ @@ -138,7 +139,9 @@ struct userData char *info; time_t seen; time_t expires; - time_t expiry; /* tempuser expiry */ + time_t accessexpiry; + time_t clvlexpiry; + unsigned short lastaccess; unsigned short access; unsigned int present : 1; unsigned int flags : USER_FLAGS_SIZE; @@ -202,7 +205,7 @@ struct do_not_register { char chan_name[CHANNELLEN+1]; char setter[NICKSERV_HANDLE_LEN+1]; - time_t set; + time_t set, expires; char reason[1]; }; @@ -224,5 +227,6 @@ void process_adduser_pending(struct userNode *user); void wipe_adduser_pending(struct chanNode *channel, struct userNode *user); int check_bans(struct userNode *user, const char *channel); +int trace_check_bans(struct userNode *user, struct chanNode *chan); #endif