diff options
| author | 2010-03-02 09:23:03 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:38 -0400 | |
| commit | 408be50dd3d7ae5f53b16f6f097f1a2b1981f3ba (patch) | |
| tree | 1b105de0572671247430fdaee7580e4a7dca6549 /src/modules/m_autoop.cpp | |
| parent | Don't send events for removed FDs when both read and write are ready (diff) | |
Fix m_autoop not running its OnUserJoin hook
Diffstat (limited to 'src/modules/m_autoop.cpp')
| -rw-r--r-- | src/modules/m_autoop.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index 626bf2393..49e9a3ab2 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -77,10 +77,16 @@ public: mh.init(); ServerInstance->Modules->AddService(mh); - Implementation list[] = { I_OnUserPreJoin, I_OnRehash }; + Implementation list[] = { I_OnUserJoin, I_OnRehash }; ServerInstance->Modules->Attach(list, this, 2); } + void Prioritize() + { + Module* st = ServerInstance->Modules->Find("m_spanningtree.so"); + ServerInstance->Modules->SetPriority(this, I_OnUserJoin, PRIORITY_AFTER, &st); + } + void OnUserJoin(Membership* memb, bool, bool, CUList&) { if (!IS_LOCAL(memb->user)) |
