From 5de432e994a422189dd0d2b9a35b37383d8f853a Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Apr 2004 13:00:15 +0000 Subject: 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 --- src/modules/m_chghost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 2d98884cf..c70c56967 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -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])); } } -- cgit v1.2.3