mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Webadmin: don't modify listeners if loaded as user mod
Thanks to TheLordOfTime
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgStr, CString& sMessage) {
|
||||
if (sArgStr.empty())
|
||||
if (sArgStr.empty() || CModInfo::GlobalModule != GetType())
|
||||
return true;
|
||||
|
||||
// We don't accept any arguments, but for backwards
|
||||
|
||||
Reference in New Issue
Block a user