]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Fix user->host not being assigned correctly for new connections
[user/henk/code/inspircd.git] / src / modules.cpp
index b051085fd40d68f882e88b888ab279edddd4a1bd..5cfbd6f9398ffcb72a02bece83751291a77426e7 100644 (file)
@@ -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<std::string>& parameters, User* user)