mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Only admins should be able to load email module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2266 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -48,6 +48,12 @@ public:
|
||||
virtual ~CEmail() {}
|
||||
|
||||
virtual bool OnLoad(const CString & sArgs, CString& sMessage) {
|
||||
#ifndef MOD_EMAIL_ALLOW_EVERYONE
|
||||
if (!m_pUser->IsAdmin()) {
|
||||
sMessage = "You must be admin to use the email module";
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
m_sMailPath = sArgs;
|
||||
|
||||
StartParser();
|
||||
|
||||
Reference in New Issue
Block a user