X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/446c7d4f57100bfe963b36f56117545f7804c3d6..07db71cda082d1d7db7bec491bb60aee5f1e2879:/include/channel.h diff --git a/include/channel.h b/include/channel.h index b9932be..22f9d53 100644 --- a/include/channel.h +++ b/include/channel.h @@ -21,7 +21,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: channel.h 3580 2007-11-07 23:45:14Z jilles $ */ #ifndef INCLUDED_channel_h @@ -51,6 +50,7 @@ struct Channel { rb_dlink_node node; struct Mode mode; + char *mode_lock; char *topic; char *topic_info; time_t topic_time; @@ -186,8 +186,9 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p, #define MODE_NOKICK 0x40000 /* Disable /kick on this channel */ #define MODE_NONICK 0x80000 /* Disable /nick for anyone on this channel */ #define MODE_NOCAPS 0x100000 /* Block messages in all capital letters */ -#define MODE_NOREPEAT 0x200000 /* Block repeat messages */ -#define MODE_NOOPERKICK 0x400000 /* disallow kicking opers */ +#define MODE_NOREJOIN 0x200000 /* Block rejoin immediately after kick */ +#define MODE_NOREPEAT 0x400000 /* Block repeat messages */ +#define MODE_NOOPERKICK 0x800000 /* disallow kicking opers */ #define CHFL_BAN 0x10000000 /* ban channel flag */ #define CHFL_EXCEPTION 0x20000000 /* exception to ban channel flag */ @@ -282,6 +283,8 @@ void resv_chan_forcepart(const char *name, const char *reason, int temp_time); extern void set_channel_mode(struct Client *client_p, struct Client *source_p, struct Channel *chptr, struct membership *msptr, int parc, const char *parv[]); +extern void set_channel_mlock(struct Client *client_p, struct Client *source_p, + struct Channel *chptr, const char *newmlock, int propagate); extern struct ChannelMode chmode_table[256];