]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_vhost.cpp
So much stuff changed in this one, i forgot most of it.
[user/henk/code/inspircd.git] / src / modules / m_vhost.cpp
index a7ce8fd4ab07a040dda9c183dbb644f517cb78a2..80d3f8f6b16fdada9655ed4c88f3863bae1e33cd 100644 (file)
@@ -47,13 +47,13 @@ class cmd_vhost : public command_t
                        {
                                if (mask != "")
                                {
-                                       Srv->SendServ(user->fd,"NOTICE "+std::string(user->nick)+" :Setting your VHost: " + mask);
-                                       Srv->ChangeHost(user,mask);
+                                       user->WriteServ("NOTICE "+std::string(user->nick)+" :Setting your VHost: " + mask);
+                                       user->ChangeDisplayedHost(mask.c_str());
                                        return;
                                }
                        }
                }
-               Srv->SendServ(user->fd,"NOTICE "+std::string(user->nick)+" :Invalid username or password.");
+               user->WriteServ("NOTICE "+std::string(user->nick)+" :Invalid username or password.");
        }
 };