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:
cflakes
2010-04-04 18:35:59 +00:00
parent 3a41bc388f
commit 21c30c84d5
+3 -3
View File
@@ -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)";
}