mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 06:36:38 +02:00
- Added set::spamfilter::virus-help-channel-deny. This allows you to block any
normal joins to the virus-help-channel. This way you could prevent users into accidental (or tricked) joining of the virus-help-channel and becomming infected. This feature is disabled by default. Requested by bleepy (#0001811).
This commit is contained in:
@@ -193,6 +193,15 @@ DLLFUNC CMD_FUNC(m_invite)
|
||||
}
|
||||
}
|
||||
|
||||
if (MyClient(sptr) && SPAMFILTER_VIRUSCHANDENY && SPAMFILTER_VIRUSCHAN &&
|
||||
!strcasecmp(chptr->chname, SPAMFILTER_VIRUSCHAN) &&
|
||||
!is_chan_op(sptr, chptr) && !IsAnOper(sptr) && !IsULine(sptr))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_CHANOPRIVSNEEDED),
|
||||
me.name, parv[0], chptr->chname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (MyConnect(sptr))
|
||||
{
|
||||
if (check_for_target_limit(sptr, acptr, acptr->name))
|
||||
|
||||
Reference in New Issue
Block a user