From 0276e5138a8f886fe709ffed534aaf5ff826b5be Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 17:51:36 +0000 Subject: 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 --- src/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index b051085fd..5cfbd6f93 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -715,7 +715,7 @@ Channel* InspIRCd::GetChannelIndex(long index) bool InspIRCd::MatchText(const std::string &sliteral, const std::string &spattern) { - return match(sliteral.c_str(),spattern.c_str()); + return match(sliteral, spattern); } CmdResult InspIRCd::CallCommandHandler(const std::string &commandname, const std::vector& parameters, User* user) -- cgit v1.2.3