summaryrefslogtreecommitdiff
path: root/src/xline.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/xline.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/xline.cpp')
-rw-r--r--src/xline.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 1e2e415cd..1b56f2920 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -532,7 +532,7 @@ void QLine::Apply(User* u)
bool ZLine::Matches(const std::string &str)
{
- if (match(str.c_str(), this->ipaddr, true))
+ if (match(str, this->ipaddr, true))
return true;
else
return false;
@@ -540,7 +540,7 @@ bool ZLine::Matches(const std::string &str)
bool QLine::Matches(const std::string &str)
{
- if (match(str.c_str(), this->nick))
+ if (match(str, this->nick))
return true;
return false;
@@ -548,17 +548,17 @@ bool QLine::Matches(const std::string &str)
bool ELine::Matches(const std::string &str)
{
- return ((match(str.c_str(), matchtext.c_str(), true)));
+ return ((match(str, matchtext, true)));
}
bool KLine::Matches(const std::string &str)
{
- return ((match(str.c_str(), matchtext.c_str(), true)));
+ return ((match(str.c_str(), matchtext, true)));
}
bool GLine::Matches(const std::string &str)
{
- return ((match(str.c_str(), matchtext.c_str(), true)));
+ return ((match(str, matchtext, true)));
}
void ELine::OnAdd()