summaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.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_cloaking.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_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 8fd4e43e5..98cbd10a4 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -99,14 +99,14 @@ class ModuleCloaking : public Module
sprintf(ra,"%.8X",seed*s2*strlen(dest->host));
std::string b = Srv->GetNetworkName() + "-" + ra + a;
Srv->Log(DEBUG,"cloak: allocated "+b);
- strcpy(dest->dhost,b.c_str());
+ Srv->ChangeHost(user,b);
}
}
else
{
// user is removing the mode, so just restore their real host
// and make it match the displayed one.
- strcpy(dest->dhost,dest->host);
+ Srv->ChangeHost(user,user->host);
}
// this mode IS ours, and we have handled it. If we chose not to handle it,
// for example the user cannot cloak as they have a vhost or such, then