aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sethost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r--src/modules/m_sethost.cpp10
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;
}
};