ircd: implement EXTENDCHANS, based on ircd-seven (with some improvements from chatircd)
This commit is contained in:
parent
fe749d3709
commit
a4721f5e9f
13 changed files with 164 additions and 12 deletions
|
@ -278,9 +278,9 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
|
||||
if((rb_dlink_list_length(&source_p->user->channel) >=
|
||||
(unsigned long) ConfigChannel.max_chans_per_user) &&
|
||||
(!IsOper(source_p) ||
|
||||
(!IsExtendChans(source_p) ||
|
||||
(rb_dlink_list_length(&source_p->user->channel) >=
|
||||
(unsigned long) ConfigChannel.max_chans_per_user * 3)))
|
||||
(unsigned long) ConfigChannel.max_chans_per_user_large)))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_TOOMANYCHANNELS),
|
||||
me.name, source_p->name, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue