summaryrefslogtreecommitdiff
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 17:51:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 17:51:36 +0000
commit0276e5138a8f886fe709ffed534aaf5ff826b5be (patch)
treee4bcaf9f66bb07b11e0eac4c3b7584b331577048 /src/modules/m_denychans.cpp
parent1fc43c1cab6a02df61955dc48dbf6bef3c586c4f (diff)
Remove .c_str()'s in match() calls that are no longer needed as match() natively takes std::strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index cab26122d..8d242edce 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -54,12 +54,12 @@ class ModuleDenyChannels : public Module
for (int j =0; j < Conf->Enumerate("badchan"); j++)
{
- if (match(redirect.c_str(), Conf->ReadValue("badchan","name",j).c_str()))
+ if (match(redirect, Conf->ReadValue("badchan","name",j)))
{
bool goodchan = false;
for (int k =0; k < Conf->Enumerate("goodchan"); k++)
{
- if (match(redirect.c_str(), Conf->ReadValue("goodchan","name",k).c_str()))
+ if (match(redirect, Conf->ReadValue("goodchan","name",k)))
goodchan = true;
}
@@ -91,7 +91,7 @@ class ModuleDenyChannels : public Module
{
for (int j =0; j < Conf->Enumerate("badchan"); j++)
{
- if (match(cname, Conf->ReadValue("badchan","name",j).c_str()))
+ if (match(cname, Conf->ReadValue("badchan","name",j)))
{
if (IS_OPER(user) && Conf->ReadFlag("badchan","allowopers",j))
{
@@ -104,7 +104,7 @@ class ModuleDenyChannels : public Module
for (int i = 0; i < Conf->Enumerate("goodchan"); i++)
{
- if (match(cname, Conf->ReadValue("goodchan", "name", i).c_str()))
+ if (match(cname, Conf->ReadValue("goodchan", "name", i)))
{
return 0;
}