* along with this program; if not, write to the Free Software
* 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
#define MAXMODEPARAMS 4
#define MAXMODEPARAMSSERV 10
+#include <setup.h>
+
struct Client;
/* mode structure for channels */
unsigned int join_count; /* joins within delta */
unsigned int join_delta; /* last ts of join */
- unsigned long bants;
+ time_t bants;
time_t channelts;
char *chname;
struct Client *client_p;
unsigned int flags;
- unsigned long bants;
+ time_t bants;
};
#define BANLEN 195
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,
+extern bool 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 *, const char **);
extern void free_channel_list(rb_dlink_list *);
-extern int check_channel_name(const char *name);
+extern bool check_channel_name(const char *name);
extern void channel_member_names(struct Channel *chptr, struct Client *,
int show_eon);
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);
+ struct Channel *chptr, const char *newmlock, bool propagate);
extern struct ChannelMode chmode_table[256];
-extern int add_id(struct Client *source_p, struct Channel *chptr, const char *banid,
+extern bool add_id(struct Client *source_p, struct Channel *chptr, const char *banid,
const char *forward, rb_dlink_list * list, long mode_type);
extern struct Ban * del_id(struct Channel *chptr, const char *banid, rb_dlink_list * list,