diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 17:51:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 17:51:36 +0000 |
commit | 0276e5138a8f886fe709ffed534aaf5ff826b5be (patch) | |
tree | e4bcaf9f66bb07b11e0eac4c3b7584b331577048 /src/modules/m_hostchange.cpp | |
parent | 1fc43c1cab6a02df61955dc48dbf6bef3c586c4f (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_hostchange.cpp')
-rw-r--r-- | src/modules/m_hostchange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index f51dfd992..7861823f1 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -97,7 +97,7 @@ class ModuleHostChange : public Module { for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++) { - if (((match(user->MakeHost(),i->first.c_str(),true)) || (match(user->MakeHostIP(),i->first.c_str())))) + if (((match(user->MakeHost(), i->first, true)) || (match(user->MakeHostIP(), i->first)))) { Host* h = i->second; |