X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_vhost.cpp;h=ecc67b19e29d9c4f3537a07b8e10477616a0c988;hb=87dd84a97265843cfe19f20c207c1c72f38a4f2d;hp=d4ccba276f8d72e4a11317f9314ae0f4a2d723ac;hpb=638381c529a2f19c699718234d689e54ad459c97;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index d4ccba276..ecc67b19e 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -26,7 +26,7 @@ class CommandVhost : public Command syntax = " "; } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { ConfigReader *Conf = new ConfigReader(ServerInstance); @@ -37,7 +37,7 @@ class CommandVhost : public Command std::string pass = Conf->ReadValue("vhost","pass",index); std::string hash = Conf->ReadValue("vhost","hash",index); - if ((!strcmp(parameters[0],username.c_str())) && !ServerInstance->PassCompare(user, pass.c_str(), parameters[1], hash.c_str())) + if ((!strcmp(parameters[0].c_str(),username.c_str())) && !ServerInstance->PassCompare(user, pass.c_str(), parameters[1].c_str(), hash.c_str())) { if (!mask.empty()) {