git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6279
e03df62e-2008-0410-955e-
edbf42e46eb7
#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 */
{
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)
{