i need add vhost only by admin

Help
paladin
2007-12-16
2013-06-05
  • paladin
    paladin
    2007-12-16

    hello,
    i need add and change vhost only from admin with the webinterface...

    that the user cannot set it selve with the /msg *status command...

    i have checked the Client.cpp but my C knowhow isnt good.

    works it when i change:
            m_pUser->SetVHost(sVHost);
            PutStatus("Set VHost to [" + m_pUser->GetVHost() + "]");
        } else if (sCommand.CaseCmp("PLAYBUFFER") == 0) {
            CString sChan = sLine.Token(1);

    to:
                    m_pUser->IsAdmin->SetVHost(sVHost);
                PutStatus("Set VHost to [" + m_pUser->GetVHost() + "]");
        } else if (sCommand.CaseCmp("PLAYBUFFER") == 0) {
            CString sChan = sLine.Token(1);

    thank you very much for help.

     
    • Underneath
      Underneath
      2009-05-20

      I'm having the same problem.
      Except i want also commands disabled for all users except admins.

      If i login as normal user i'm capable to active admin in modules same for shell access.

      That kind of things must be unavailable for normal users but how to do that?

       
      • Psychon
        Psychon
        2009-05-20

        Uhm, in newer znc versions, if you set a global list of available vhosts, users can only use those vhosts (the VHost textbox on the settings page in webadmin).
        And unless your znc version is really, really, *really* old, the shell module cannot be used by non-admins. Same for the admin module, normal users can only change their own settings with this module, they shouldnt be allowed to access other users.