summaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-03 01:52:59 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-03 01:52:59 +0000
commitde25d946733f774e3a5b53a58438a9c92af0acbe (patch)
tree459ccc3b0c2423f1592afec4b458615968a1176d /src/modules/m_globalload.cpp
parente57ed15735a3f23d6451845c7cf96758e6909d8c (diff)
Get rid of a bunch of memory-wasting C-style strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index 348984e14..636b9f4e4 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -30,7 +30,7 @@ class CommandGloadmodule : public Command
{
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
{
if (ServerInstance->Modules->Load(parameters[0].c_str()))
{
@@ -68,7 +68,7 @@ class CommandGunloadmodule : public Command
{
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
{
if (ServerInstance->Modules->Unload(parameters[0].c_str()))
{
@@ -106,7 +106,7 @@ class CommandGreloadmodule : public Command
{
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
{
bool ok = true;
if (!ServerInstance->Modules->Unload(parameters[0].c_str()))