From 1cae57dbf31474aa4a4b5706c1b90f29577dc7e6 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 5 May 2008 20:39:40 +0000 Subject: Don't propegate SETHOST, ChangeDisplayedHost sends out hostchange anyway git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9648 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sethost.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index cdcbbde9e..e781a79aa 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -50,10 +50,11 @@ class CommandSethost : public Command user->WriteServ("NOTICE %s :*** SETHOST: Host too long",user->nick); return CMD_FAILURE; } + if (user->ChangeDisplayedHost(parameters[0].c_str())) { ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost); - return CMD_SUCCESS; + return CMD_LOCALONLY; } return CMD_FAILURE; -- cgit v1.2.3