]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/channel.h
Actually add +p umode and expiry code. It currently does nothing though.
[irc/rqf/shadowircd.git] / include / channel.h
index b4da1b6edaeabe353cf979295f693e56317df4c1..c6a5de91b4f1e557e9a740459e4d71457b5c7308 100644 (file)
@@ -88,6 +88,7 @@ struct membership
        unsigned int flags;
 
        unsigned long bants;
+       unsigned long override_ts;
 };
 
 #define BANLEN 195
@@ -114,6 +115,7 @@ struct ChModeChange
        int caps;
        int nocaps;
        int mems;
+       int override;
        struct Client *client;
 };
 
@@ -171,6 +173,11 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p,
 #define MODE_FREEINVITE 0x0800  /* allow free use of /invite */
 #define MODE_FREETARGET 0x1000  /* can be forwarded to without authorization */
 #define MODE_DISFORWARD 0x2000  /* disable channel forwarding */
+#define MODE_NOOPERKICK 0x4000  /* disallow kicking opers aka immune */
+#define MODE_NOCTCP     0x8000  /* Block CTCPs directed to this channel */
+#define MODE_NONOTICE  0x16000 /* Block notices directed to this channel */
+#define MODE_NOACTION  0x32000 /* Block CTCP ACTION directed to this channel */
+#define MODE_NOKICK    0x64000 /* Disable /kick on this channel */
 
 #define CHFL_BAN        0x10000000     /* ban channel flag */
 #define CHFL_EXCEPTION  0x20000000     /* exception to ban channel flag */
@@ -189,6 +196,8 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p,
 
 /* channel visible */
 #define ShowChannel(v,c)        (PubChannel(c) || IsMember((v),(c)))
+/* user visible in channel */
+#define ShowInChannel(v,t,c)    ((PubChannel(c) && !IsInvisible(t)) || IsMember((v),(c)))
 
 #define IsMember(who, chan) ((who && who->user && \
                 find_channel_membership(chan, who)) ? 1 : 0)
@@ -268,5 +277,9 @@ extern int match_extban(const char *banstr, struct Client *client_p, struct Chan
 extern int valid_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type);
 const char * get_extban_string(void);
 
+extern struct Channel * check_forward(struct Client *source_p, struct Channel *chptr, char *key);
+extern void user_join(struct Client * client_p, struct Client * source_p, const char * channels, const char * keys);
+extern void do_join_0(struct Client *client_p, struct Client *source_p);
+extern int check_channel_name_loc(struct Client *source_p, const char *name);
 
 #endif /* INCLUDED_channel_h */