diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_sethost.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |