X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/cd25f2e983991b8769135c8e88a372272ec6d96c..87708af4eacee62cfe973fcac527a455b314cfd7:/src/chanserv.h diff --git a/src/chanserv.h b/src/chanserv.h index 334bf98..39c8b7e 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, @@ -24,11 +24,11 @@ #include "nickserv.h" enum UL_ALIASES { - UL_PEON = 100, + UL_PEON = 1, UL_HALFOP = 150, UL_OP = 200, UL_MANAGER = 300, - UL_PRESENT = UL_MANAGER, + UL_PRESENT = UL_MANAGER, /* Level needed to keep the channel active */ UL_COOWNER = 400, UL_OWNER = 500, UL_HELPER = 600, @@ -98,11 +98,13 @@ struct chanData char *registrar; char *topic_mask; + unsigned int maxsetinfo; unsigned int flags : 30; unsigned int may_opchan : 1; unsigned int max; unsigned int last_refresh; unsigned int last_resync; + unsigned int roulette_chamber; unsigned short banCount; /* Lamers, really */ unsigned short userCount; unsigned short lvlOpts[NUM_LEVEL_OPTIONS]; @@ -138,6 +140,9 @@ struct userData char *info; time_t seen; time_t expires; + time_t accessexpiry; + time_t clvlexpiry; + unsigned short lastaccess; unsigned short access; unsigned int present : 1; unsigned int flags : USER_FLAGS_SIZE; @@ -222,4 +227,7 @@ char* user_level_name_from_level(int level); 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