1
0
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:
Bram Matthys
2004-05-18 00:39:45 +00:00
parent 6d09e29d0c
commit 76f0f87fdd
7 changed files with 53 additions and 2 deletions
+9
View File
@@ -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))