diff --git a/modules/webadmin.cpp b/modules/webadmin.cpp index 333179a6..0d8fce36 100644 --- a/modules/webadmin.cpp +++ b/modules/webadmin.cpp @@ -770,18 +770,6 @@ bool CWebAdminSock::UserPage(CString& sPageRet, CUser* pUser) { } } - const VCString& vsVHosts = CZNC::Get().GetVHosts(); - for (unsigned int b = 0; b < vsVHosts.size(); b++) { - const CString& sVHost = vsVHosts[b]; - CTemplate& l = m_Template.AddRow("VHostLoop"); - - l["VHost"] = sVHost; - - if (pUser && pUser->GetVHost() == sVHost) { - l["Checked"] = "true"; - } - } - const vector& Channels = pUser->GetChans(); for (unsigned int c = 0; c < Channels.size(); c++) { CChan* pChan = Channels[c]; @@ -805,6 +793,18 @@ bool CWebAdminSock::UserPage(CString& sPageRet, CUser* pUser) { m_Template["StatusPrefix"] = "*"; } + const VCString& vsVHosts = CZNC::Get().GetVHosts(); + for (unsigned int b = 0; b < vsVHosts.size(); b++) { + const CString& sVHost = vsVHosts[b]; + CTemplate& l = m_Template.AddRow("VHostLoop"); + + l["VHost"] = sVHost; + + if (pUser && pUser->GetVHost() == sVHost) { + l["Checked"] = "true"; + } + } + set ssUserMods; CZNC::Get().GetModules().GetAvailableMods(ssUserMods);