diff options
| author | 2023-06-29 22:29:34 +0100 | |
|---|---|---|
| committer | 2023-06-29 22:52:07 +0100 | |
| commit | 1d96baaf774eacd5eacd357500a01af693aad654 (patch) | |
| tree | 8c2e960bba6dc28f9c381c27a9c38524fda56946 /src/modules/m_sethost.cpp | |
| parent | Fix remote users on legacy servers not having a real username. (diff) | |
Remove OnPreChange{Host,RealName} events and deboolify methods.
These have not ever been used as far as I can see.
Diffstat (limited to 'src/modules/m_sethost.cpp')
| -rw-r--r-- | src/modules/m_sethost.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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; } }; |
