mirror of
https://github.com/znc/znc.git
synced 2026-06-25 04:22:08 +02:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user