summaryrefslogtreecommitdiff
path: root/src/modules/m_chghost.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 22:21:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 22:21:06 +0000
commit4d5738912ae8dfa7286393c3e86a2e7e2f16d17a (patch)
tree620fe429b8428a27ed4fe5f732fdb0bb1101abb9 /src/modules/m_chghost.cpp
parentdada179fb63917ced15976da5e83c7c6ddc65f2f (diff)
Modified to silently set hosts if uline sets it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2285 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r--src/modules/m_chghost.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index 498d8e7a4..6a5845e72 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -42,7 +42,11 @@ void handle_chghost(char **parameters, int pcnt, userrec *user)
if (dest)
{
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]));
+ if (!Srv->IsUlined(user->server))
+ {
+ // fix by brain - ulines set hosts silently
+ Srv->SendOpers(std::string(user->nick)+" used CHGHOST to make the displayed host of "+std::string(dest->nick)+" become "+std::string(parameters[1]));
+ }
}
}