diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 13:21:17 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 13:21:17 +0000 |
commit | 3282cf07a1cc1f7e11ac2bd756b739dcf97c9069 (patch) | |
tree | cdb4c61c2dbcdb09162808c89b6fa81bd4cbdc9f /src | |
parent | f1d7e1e544be66cd0e7108d38e438cb0c9234b46 (diff) |
Made m_denychans support wildcards
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6279 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_denychans.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index cbd736869..3646690fb 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -15,8 +15,8 @@ #include "channels.h" #include "modules.h" #include "hashcomp.h" - #include "inspircd.h" +#include "wildcard.h" /* $ModDesc: Implements config tags which allow blocking of joins to channels */ @@ -59,9 +59,7 @@ class ModuleDenyChannels : public Module { for (int j =0; j < Conf->Enumerate("badchan"); j++) { - irc::string cn = Conf->ReadValue("badchan","name",j).c_str(); - irc::string thischan = cname; - if (thischan == cn) + if (match(cname, Conf->ReadValue("badchan","name",j).c_str())) { if ((Conf->ReadFlag("badchan","allowopers",j)) && *user->oper) { |