summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 12:44:23 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 12:44:23 +0000
commitac8e888fd084ba76df1b3575a3563ca712004f3b (patch)
treeb41102823fca5d339e21c95c71bae2f21cd5f395
parent484bf7243ef0098cb9d1fa367ea66876eab0e9c6 (diff)
Don't re-propegate CHGHOST unnecessarily
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9644 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_chghost.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index c327d27b3..763bb2f26 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -60,10 +60,16 @@ class CommandChghost : public Command
return CMD_FAILURE;
}
- if ((dest->ChangeDisplayedHost(parameters[1].c_str())) && (!ServerInstance->ULine(user->server)))
+ if (IS_LOCAL(dest))
{
- // fix by brain - ulines set hosts silently
- ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used CHGHOST to make the displayed host of "+dest->nick+" become "+dest->dhost);
+ if ((dest->ChangeDisplayedHost(parameters[1].c_str())) && (!ServerInstance->ULine(user->server)))
+ {
+ // fix by brain - ulines set hosts silently
+ ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used CHGHOST to make the displayed host of "+dest->nick+" become "+dest->dhost);
+ }
+
+ /* ChangeDisplayedHost fixes it for us */
+ return CMD_LOCALONLY;
}
/* route it! */