diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:43:28 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:43:28 +0000 |
commit | bf5a8dc97fd0e8dee0d0a1946d4fcd31bebb4a24 (patch) | |
tree | 454b870edd7dfc3f83d84f2659c557cd61af1a5f /src/modules/m_vhost.cpp | |
parent | e95f77bc9981b3e232899e8ff5e7d140efed92b7 (diff) |
Convertions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9634 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_vhost.cpp')
-rw-r--r-- | src/modules/m_vhost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "<username> <password>"; } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶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()) { |