summaryrefslogtreecommitdiff
path: root/src/modules/m_testnet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_testnet.cpp')
-rw-r--r--src/modules/m_testnet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_testnet.cpp b/src/modules/m_testnet.cpp
index a4bdfc561..6a0cfa303 100644
--- a/src/modules/m_testnet.cpp
+++ b/src/modules/m_testnet.cpp
@@ -51,7 +51,7 @@ class ModuleTest : public Module
public:
ModuleTest() : cmd(this)
{
- if (!strstr(ServerInstance->Config->ServerName, ".test"))
+ if (!strstr(ServerInstance->Config->ServerName.c_str(), ".test"))
throw ModuleException("Don't load modules without reading their descriptions!");
ServerInstance->AddCommand(&cmd);
}