Allow +z messages from outside if -n.
This gives a useful meaning to the cmode combo +mz-n: messages from ops and voices go to all channel members, messages from anyone else (on or off channel) go to ops. With +mnz, messages from outside are not allowed at all.
This commit is contained in:
parent
9cd063980a
commit
8feca1768e
1 changed files with 2 additions and 1 deletions
|
@ -477,7 +477,8 @@ msg_channel(int p_or_n, const char *command,
|
||||||
}
|
}
|
||||||
else if(chptr->mode.mode & MODE_OPMODERATE &&
|
else if(chptr->mode.mode & MODE_OPMODERATE &&
|
||||||
chptr->mode.mode & MODE_MODERATED &&
|
chptr->mode.mode & MODE_MODERATED &&
|
||||||
IsMember(source_p, chptr))
|
(!(chptr->mode.mode & MODE_NOPRIVMSGS) ||
|
||||||
|
IsMember(source_p, chptr)))
|
||||||
{
|
{
|
||||||
/* only do +z for +m channels for now, as bans/quiets
|
/* only do +z for +m channels for now, as bans/quiets
|
||||||
* aren't tested for remote clients -- jilles */
|
* aren't tested for remote clients -- jilles */
|
||||||
|
|
Loading…
Reference in a new issue