aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_vhost.cpp
diff options
context:
space:
mode:
authorGravatar w00t2007-08-03 21:22:40 +0000
committerGravatar w00t2007-08-03 21:22:40 +0000
commit2bb30c6f5aea0b237384782fb5cabfdac94fdffd (patch)
tree44966206d12d75414bb1ccf7eb39add26f8f5cdd /src/modules/m_vhost.cpp
parentmark 7637 as merged (diff)
Backport 7641 manually via patch file. I'm off for pleasures of the flesh, cyall. :P
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7642 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_vhost.cpp')
-rw-r--r--src/modules/m_vhost.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp
index c77a3f85f..3ce910456 100644
--- a/src/modules/m_vhost.cpp
+++ b/src/modules/m_vhost.cpp
@@ -38,16 +38,18 @@ class cmd_vhost : public command_t
std::string mask = Conf->ReadValue("vhost","host",index);
std::string username = Conf->ReadValue("vhost","user",index);
std::string pass = Conf->ReadValue("vhost","pass",index);
+
if ((!strcmp(parameters[0],username.c_str())) && (!strcmp(parameters[1],pass.c_str())))
{
if (!mask.empty())
{
user->WriteServ("NOTICE "+std::string(user->nick)+" :Setting your VHost: " + mask);
user->ChangeDisplayedHost(mask.c_str());
- return CMD_FAILURE;
+ return CMD_LOCALONLY;
}
}
}
+
user->WriteServ("NOTICE "+std::string(user->nick)+" :Invalid username or password.");
return CMD_FAILURE;
}