chghost fixes (changed the host of the user doing the command!)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@564 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2004-04-12 13:00:15 +00:00
parent 3103cfb801
commit 5de432e994

View File

@ -33,7 +33,7 @@ void handle_chghost(char **parameters, int pcnt, userrec *user)
} userrec* dest = Srv->FindNick(std::string(parameters[0]));
if (dest)
{
Srv->ChangeHost(user,parameters[1]);
Srv->ChangeHost(dest,parameters[1]);
Srv->SendOpers(std::string(user->nick)+" used CHGHOST to make the displayed host of "+std::string(dest->nick)+" become "+std::string(parameters[1]));
}
}