mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Add goodchan tags for m_denychans: Allows the use case of forbidding *warez*, and allowing #thisreallyisntwarez, or whatever.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8696 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
e4acbc95b8
commit
a433607124
@ -62,6 +62,15 @@ class ModuleDenyChannels : public Module
|
||||
else
|
||||
{
|
||||
std::string reason = Conf->ReadValue("badchan","reason",j);
|
||||
|
||||
for (int j = 0; j < Conf->Enumerate("goodchan"); j++)
|
||||
{
|
||||
if (match(cname, Conf->ReadValue("goodchan", "name", j).c_str()))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
user->WriteServ("926 %s %s :Channel %s is forbidden: %s",user->nick,cname,cname,reason.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user