]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_vhost.cpp
m_dnsbl: Use the blacklist name rather than the domain.
[user/henk/code/inspircd.git] / src / modules / m_vhost.cpp
index 227d9426e1078ffd0e06c5aa6a6187dbc2ecdd4b..01df33cae02eeabafccf2a726253a3f80ded3151 100644 (file)
@@ -32,7 +32,7 @@ class CommandVhost : public Command
                syntax = "<username> <password>";
        }
 
-       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
+       CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
        {
                ConfigTagList tags = ServerInstance->Config->ConfTags("vhost");
                for(ConfigIter i = tags.first; i != tags.second; ++i)
@@ -48,7 +48,7 @@ class CommandVhost : public Command
                                if (!mask.empty())
                                {
                                        user->WriteNotice("Setting your VHost: " + mask);
-                                       user->ChangeDisplayedHost(mask.c_str());
+                                       user->ChangeDisplayedHost(mask);
                                        return CMD_SUCCESS;
                                }
                        }