summaryrefslogtreecommitdiff
path: root/src/modules/m_chghost.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 12:55:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 12:55:06 +0000
commit3103cfb80135cbc2a0f47566ec0cb88affc7bac1 (patch)
treea45c2351da691d396ad9b8811483250c6610860a /src/modules/m_chghost.cpp
parent642b665fb0967dc9dcbaed5f54b52276ea230e12 (diff)
Abstracted host/gecos changing to Server:: methods
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@563 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r--src/modules/m_chghost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index 7938f8b23..2d98884cf 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)
{
- strncpy(dest->dhost,parameters[1],127);
+ Srv->ChangeHost(user,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]));
}
}