diff options
Diffstat (limited to 'src/modules/m_regonlycreate.cpp')
-rw-r--r-- | src/modules/m_regonlycreate.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_regonlycreate.cpp b/src/modules/m_regonlycreate.cpp index 84058fbfa..6b6e059df 100644 --- a/src/modules/m_regonlycreate.cpp +++ b/src/modules/m_regonlycreate.cpp @@ -25,7 +25,14 @@ class ModuleRegOnlyCreate : public Module { + UserModeReference regusermode; + public: + ModuleRegOnlyCreate() + : regusermode(this, "u_registered") + { + } + void init() CXX11_OVERRIDE { Implementation eventlist[] = { I_OnUserPreJoin }; @@ -40,7 +47,7 @@ class ModuleRegOnlyCreate : public Module if (user->IsOper()) return MOD_RES_PASSTHRU; - if (user->IsModeSet('r')) + if (user->IsModeSet(regusermode)) return MOD_RES_PASSTHRU; const AccountExtItem* ext = GetAccountExtItem(); |