diff options
Diffstat (limited to 'src/modules/m_spanningtree/uid.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index cfaea59ed..ffd6aa223 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -151,13 +151,12 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params CmdResult CommandFHost::HandleRemote(RemoteUser* src, Params& params) { - src->ChangeDisplayedHost(params[0]); - return CmdResult::SUCCESS; -} + if (params[0] != "*") + src->ChangeDisplayedHost(params[0]); + + if (params[1] != "*") + src->ChangeRealHost(params[1], false); -CmdResult CommandFRHost::HandleRemote(RemoteUser* src, Params& params) -{ - src->ChangeRealHost(params[0], false); return CmdResult::SUCCESS; } |
