mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -571,6 +571,13 @@ class CAdminMod : public CModule {
|
||||
}
|
||||
|
||||
void AddNetwork(const CString& sLine) {
|
||||
#ifndef ENABLE_ADD_NETWORK
|
||||
if (!m_pUser->IsAdmin()) {
|
||||
PutModule("Permission denied");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
CString sUser = sLine.Token(1);
|
||||
CString sNetwork = sLine.Token(2);
|
||||
CUser *pUser = m_pUser;
|
||||
|
||||
Reference in New Issue
Block a user