mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
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:
parent
3103cfb801
commit
5de432e994
@ -33,7 +33,7 @@ void handle_chghost(char **parameters, int pcnt, userrec *user)
|
|||||||
} userrec* dest = Srv->FindNick(std::string(parameters[0]));
|
} userrec* dest = Srv->FindNick(std::string(parameters[0]));
|
||||||
if (dest)
|
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]));
|
Srv->SendOpers(std::string(user->nick)+" used CHGHOST to make the displayed host of "+std::string(dest->nick)+" become "+std::string(parameters[1]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user