X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_denychans.cpp;h=3646690fb853ca51bd29025f638cb063a590b5e1;hb=be36d92f3dcb0ac3772daebff43a5ecfe0a2d364;hp=cbd7368691c218c3528280b68f6ac15ced17174c;hpb=42d5b9571eff06b0c33093dc9118c29f9603fd2b;p=user%2Fhenk%2Fcode%2Finspircd.git 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) {