Permalink
Browse files

Webadmin: don't modify listeners if loaded as user mod

Thanks to TheLordOfTime
  • Loading branch information...
1 parent 833e63f commit cf8925c930e9310e875e7f40e987075e31e623b8 @DarthGandalf DarthGandalf committed Dec 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/webadmin.cpp
View
2 modules/webadmin.cpp
@@ -72,7 +72,7 @@ class CWebAdminMod : public CModule {
}
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

0 comments on commit cf8925c

Please sign in to comment.