From 6d4128715da39b1e097642a64ee0bd40586d9a38 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 10:37:42 +0000 Subject: Get rid of Server::GetUsers(chanrec) - a throwback to before chanrec could do this itself Move: bool ChangeDisplayedHost(const char* host); bool ChangeName(const char* gecos); int CountChannels(); Into userrec git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4807 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sethost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 94e811d79..631bd13a1 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -54,8 +54,8 @@ class cmd_sethost : public command_t } } } - Srv->ChangeHost(user,parameters[0]); - Srv->SendOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+std::string(parameters[0])); + if (user->ChangeDisplayedHost(parameters[0])) + Srv->SendOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+std::string(parameters[0])); } }; -- cgit v1.2.3