summaryrefslogtreecommitdiff
path: root/src/channels.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/channels.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/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index b0de06267..4286abfef 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -962,7 +962,7 @@ long Channel::GetMaxBans()
/* If there isnt one, we have to do some O(n) hax to find it the first time. (ick) */
for (std::map<std::string,int>::iterator n = ServerInstance->Config->maxbans.begin(); n != ServerInstance->Config->maxbans.end(); n++)
{
- if (match(this->name,n->first.c_str()))
+ if (match(this->name,n->first))
{
this->maxbans = n->second;
return n->second;