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:
w00t 2008-01-10 22:43:10 +00:00
parent e4acbc95b8
commit a433607124

View File

@ -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;
}