From 87a767263822d3ed7d2528b526b4b6c39e41cf03 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 10 Jun 2009 12:21:37 +0000 Subject: [PATCH] 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 --- modules/admin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin.cpp b/modules/admin.cpp index 66dc8f05..b1aa586f 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -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; }