I fail (fix the admin module)

Thanks SilverLeo :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1540 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-06-10 12:21:37 +00:00
parent 062989595c
commit 87a7672638
+1 -1
View File
@@ -113,7 +113,7 @@ class CAdminMod : public CModule {
PutModule("Error: User not found: " + username);
return NULL;
}
if (user != m_pUser && !m_pUser->IsAdmin()) {
if (pUser != m_pUser && !m_pUser->IsAdmin()) {
PutModule("Error: You need to have admin rights to modify other users!");
return NULL;
}