From 1d96baaf774eacd5eacd357500a01af693aad654 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Jun 2023 22:29:34 +0100 Subject: Remove OnPreChange{Host,RealName} events and deboolify methods. These have not ever been used as far as I can see. --- src/modules/m_sethost.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 00bd92580..c20c22e3f 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -55,13 +55,9 @@ public: } } - if (user->ChangeDisplayedHost(parameters[0])) - { - ServerInstance->SNO.WriteGlobalSno('a', user->nick+" used SETHOST to change their displayed host to "+user->GetDisplayedHost()); - return CmdResult::SUCCESS; - } - - return CmdResult::FAILURE; + user->ChangeDisplayedHost(parameters[0]); + ServerInstance->SNO.WriteGlobalSno('a', user->nick+" used SETHOST to change their displayed host to "+user->GetDisplayedHost()); + return CmdResult::SUCCESS; } }; -- cgit v1.3.1-10-gc9f91