45 |
|
dlink_node node; |
46 |
|
|
47 |
|
struct Channel *hnextch; |
48 |
– |
|
48 |
|
struct Mode mode; |
49 |
+ |
|
50 |
|
char *topic; |
51 |
|
char *topic_info; |
52 |
+ |
|
53 |
+ |
time_t channelts; |
54 |
|
time_t topic_time; |
55 |
|
time_t last_knock; /*!< don't allow knock to flood */ |
56 |
+ |
time_t last_join_time; |
57 |
+ |
time_t first_received_message_time; /*!< channel flood control */ |
58 |
+ |
unsigned int flags; |
59 |
+ |
int received_number_of_privmsgs; |
60 |
|
|
61 |
|
dlink_list members; |
62 |
|
dlink_list invites; |
64 |
|
dlink_list exceptlist; |
65 |
|
dlink_list invexlist; |
66 |
|
|
61 |
– |
time_t first_received_message_time; /*!< channel flood control */ |
62 |
– |
int received_number_of_privmsgs; |
63 |
– |
int flags; |
67 |
|
float number_joined; |
65 |
– |
time_t last_join_time; |
68 |
|
|
67 |
– |
time_t channelts; |
69 |
|
char chname[CHANNELLEN + 1]; |
70 |
|
}; |
71 |
|
|
83 |
|
struct Ban |
84 |
|
{ |
85 |
|
dlink_node node; |
85 |
– |
size_t len; |
86 |
|
char *name; |
87 |
|
char *username; |
88 |
|
char *host; |
89 |
|
char *who; |
90 |
+ |
size_t len; |
91 |
|
time_t when; |
92 |
|
struct irc_ssaddr addr; |
93 |
|
int bits; |
98 |
|
|
99 |
|
extern int check_channel_name(const char *, int); |
100 |
|
extern int can_send(struct Channel *, struct Client *, struct Membership *); |
101 |
< |
extern int is_banned(struct Channel *, struct Client *); |
101 |
> |
extern int is_banned(const struct Channel *, const struct Client *); |
102 |
|
extern int can_join(struct Client *, struct Channel *, const char *); |
103 |
|
extern int has_member_flags(struct Membership *, unsigned int); |
104 |
|
|