]> jfr.im git - solanum.git/blobdiff - include/channel.h
RSFNC: allow RSFNC against a target which just changes the capitalization of the...
[solanum.git] / include / channel.h
index 34330cb31f554537b341bc088f564158b4715162..80f7c0fbb8ff09163361e940bc8ac2be70d16c5a 100644 (file)
@@ -60,7 +60,7 @@ struct Channel
        rb_dlink_list members;  /* channel members */
        rb_dlink_list locmembers;       /* local channel members */
 
-       rb_dlink_list invites;
+rb_dlink_list invites;
        rb_dlink_list banlist;
        rb_dlink_list exceptlist;
        rb_dlink_list invexlist;
@@ -145,8 +145,9 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p,
 
 /* channel status flags */
 #define CHFL_PEON              0x0000  /* normal member of channel */
-#define CHFL_CHANOP            0x0001  /* Channel operator */
-#define CHFL_VOICE             0x0002  /* the power to speak */
+#define CHFL_VOICE             0x0001  /* the power to speak */
+#define CHFL_CHANOP            0x0002  /* Channel operator */
+
 #define CHFL_BANNED            0x0008  /* cached as banned */
 #define CHFL_QUIETED           0x0010  /* cached as being +q victim */
 #define ONLY_SERVERS           0x0020
@@ -217,6 +218,8 @@ extern void destroy_channel(struct Channel *);
 
 extern int can_send(struct Channel *chptr, struct Client *who, 
                    struct membership *);
+extern int flood_attack_channel(int p_or_n, struct Client *source_p,
+                               struct Channel *chptr, char *chname);
 extern int is_banned(struct Channel *chptr, struct Client *who,
                     struct membership *msptr, const char *, const char *);
 extern int is_quieted(struct Channel *chptr, struct Client *who,
@@ -261,7 +264,7 @@ 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);
+               struct Channel *chptr, const char *newmlock, int propagate);
 
 extern struct ChannelMode chmode_table[256];
 
@@ -276,5 +279,8 @@ 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 int get_channel_access(struct Client *source_p, struct membership *msptr);
+
+extern void send_channel_join(struct Channel *chptr, struct Client *client_p);
 
 #endif /* INCLUDED_channel_h */