diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-06 06:42:00 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-06 06:42:00 +0000 |
commit | bca17564585a3cfbc38754555ba8feff4fcbb8a2 (patch) | |
tree | f821d38fb6bd76ccca34370ff26436b374ee3893 /src | |
parent | 8583a707d655a1f0866c3c2d6aae27d5ee2d7133 (diff) |
And fixed a race condition I introduced in the previous commit that could've caused the exact same error I was fixing. This is one of those commits that never happened
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7426 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_antibear.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 6b40407a5..2718cbb4c 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -40,7 +40,7 @@ class ModuleAntiBear : public Module void Implements(char* List) { - List[I_OnUserRegister] = List[I_OnPreCommand] = List[I_OnUserConnect] = 1; + List[I_OnUserRegister] = List[I_OnPreCommand] = 1; } virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated, const std::string &original_line) @@ -73,11 +73,6 @@ class ModuleAntiBear : public Module user->Extend("antibear_timewait"); return 0; } - - virtual void OnUserConnect(userrec *user) - { - user->Shrink("antibear_timewait"); - } }; MODULE_INIT(ModuleAntiBear) |