From f154803a51ee8cc11b1bd02cd7ea3f8b354da789 Mon Sep 17 00:00:00 2001 From: aquanight Date: Sun, 18 May 2008 18:55:40 +0000 Subject: Fix some unneeded .c_str() usage in m_spanningtree git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9743 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/override_admin.cpp | 2 +- src/modules/m_spanningtree/override_modules.cpp | 2 +- src/modules/m_spanningtree/override_motd.cpp | 2 +- src/modules/m_spanningtree/override_stats.cpp | 2 +- src/modules/m_spanningtree/utils.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/override_admin.cpp b/src/modules/m_spanningtree/override_admin.cpp index 3fd59f303..31d146eda 100644 --- a/src/modules/m_spanningtree/override_admin.cpp +++ b/src/modules/m_spanningtree/override_admin.cpp @@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleAdmin(const std::vector& parameters, { if (parameters.size() > 0) { - if (match(ServerInstance->Config->ServerName, parameters[0].c_str())) + if (match(ServerInstance->Config->ServerName, parameters[0])) return 0; /* Remote ADMIN, the server is within the 1st parameter */ diff --git a/src/modules/m_spanningtree/override_modules.cpp b/src/modules/m_spanningtree/override_modules.cpp index bfeb0a03c..19c15b372 100644 --- a/src/modules/m_spanningtree/override_modules.cpp +++ b/src/modules/m_spanningtree/override_modules.cpp @@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleModules(const std::vector& parameters { if (parameters.size() > 0) { - if (match(ServerInstance->Config->ServerName, parameters[0].c_str())) + if (match(ServerInstance->Config->ServerName, parameters[0])) return 0; std::deque params; diff --git a/src/modules/m_spanningtree/override_motd.cpp b/src/modules/m_spanningtree/override_motd.cpp index a87042794..1090b2adb 100644 --- a/src/modules/m_spanningtree/override_motd.cpp +++ b/src/modules/m_spanningtree/override_motd.cpp @@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleMotd(const std::vector& parameters, U { if (parameters.size() > 0) { - if (match(ServerInstance->Config->ServerName, parameters[0].c_str())) + if (match(ServerInstance->Config->ServerName, parameters[0])) return 0; /* Remote MOTD, the server is within the 1st parameter */ diff --git a/src/modules/m_spanningtree/override_stats.cpp b/src/modules/m_spanningtree/override_stats.cpp index 169454cc6..b22517b13 100644 --- a/src/modules/m_spanningtree/override_stats.cpp +++ b/src/modules/m_spanningtree/override_stats.cpp @@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleStats(const std::vector& parameters, { if (parameters.size() > 1) { - if (match(ServerInstance->Config->ServerName, parameters[1].c_str())) + if (match(ServerInstance->Config->ServerName, parameters[1])) return 0; /* Remote STATS, the server is within the 2nd parameter */ diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index d9d6c2f01..38923a7e2 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -82,7 +82,7 @@ TreeServer* SpanningTreeUtilities::FindServerMask(const std::string &ServerName) { for (server_hash::iterator i = serverlist.begin(); i != serverlist.end(); i++) { - if (match(i->first.c_str(),ServerName.c_str())) + if (match(i->first,ServerName)) return i->second; } return NULL; -- cgit v1.2.3