mirror of
https://github.com/znc/znc.git
synced 2026-07-07 02:11:20 +02:00
Following revision 1880 the lastseen web page should only be visible for admin users.
Thanks to psychon for noticing! :) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1881 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -90,7 +90,7 @@ public:
|
||||
// Web stuff:
|
||||
|
||||
virtual bool WebRequiresLogin() { return true; }
|
||||
virtual bool WebRequiresAdmin() { return false; }
|
||||
virtual bool WebRequiresAdmin() { return true; }
|
||||
virtual CString GetWebMenuTitle() { return "Last Seen"; }
|
||||
|
||||
virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) {
|
||||
@@ -122,8 +122,8 @@ public:
|
||||
} else {
|
||||
unsigned int uChans = 0;
|
||||
const vector<CChan*>& vChans = pUser->GetChans();
|
||||
for (unsigned int a = 0; a < vChans.size(); a++) {
|
||||
if (vChans[a]->IsOn()) uChans++;
|
||||
for (unsigned int a = 0; a < vChans.size(); ++a) {
|
||||
if (vChans[a]->IsOn()) ++uChans;
|
||||
}
|
||||
Row["Info"] += ", joined to " + CString(uChans) + " channel(s)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user