diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_denychans.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 738a58103..371c58cac 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -68,11 +68,21 @@ 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; } } } + return 0; } }; |
