X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_testnet.cpp;h=6a0cfa303311667f05ad21390ea424b9e3a05ec8;hb=de25d946733f774e3a5b53a58438a9c92af0acbe;hp=a4bdfc5615e24365844e24996a25c6db132494aa;hpb=934d9a6a184b7a8600fcda30e012ba6f29f17b64;p=user%2Fhenk%2Fcode%2Finspircd.git 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); }