From ac8e888fd084ba76df1b3575a3563ca712004f3b Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 5 May 2008 12:44:23 +0000 Subject: Don't re-propegate CHGHOST unnecessarily git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9644 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chghost.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/modules/m_chghost.cpp') 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! */ -- cgit v1.2.3