mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
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
This commit is contained in:
parent
9010a88320
commit
f154803a51
@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleAdmin(const std::vector<std::string>& 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 */
|
||||
|
@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleModules(const std::vector<std::string>& 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<std::string> params;
|
||||
|
@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleMotd(const std::vector<std::string>& 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 */
|
||||
|
@ -37,7 +37,7 @@ int ModuleSpanningTree::HandleStats(const std::vector<std::string>& 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 */
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user