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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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?
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.