diff options
| author | 2009-10-25 15:31:33 +0000 | |
|---|---|---|
| committer | 2009-10-25 15:31:33 +0000 | |
| commit | 5c05313b6e979968d25a57d04da320a0c1be1b6c (patch) | |
| tree | 6e2e687f21ed46670a61c226cd8cb3e5fe2b79b4 /src/modules/m_conn_umodes.cpp | |
| parent | Add vtable cross-check code (known to work with GCC 4.4 x86_64) (diff) | |
Fixes from vtable cross-check
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11977 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_conn_umodes.cpp')
| -rw-r--r-- | src/modules/m_conn_umodes.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/m_conn_umodes.cpp b/src/modules/m_conn_umodes.cpp index 22a4ee0aa..1ae36ade1 100644 --- a/src/modules/m_conn_umodes.cpp +++ b/src/modules/m_conn_umodes.cpp @@ -19,12 +19,14 @@ class ModuleModesOnConnect : public Module { public: ModuleModesOnConnect() { - Implementation eventlist[] = { I_OnUserConnect, I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 2); - // for things like +x on connect, important, otherwise we have to resort to config order (bleh) -- w00t - ServerInstance->Modules->SetPriority(this, PRIORITY_FIRST); + ServerInstance->Modules->Attach(I_OnUserConnect, this); } + void Prioritize() + { + // for things like +x on connect, important, otherwise we have to resort to config order (bleh) -- w00t + ServerInstance->Modules->SetPriority(this, I_OnUserConnect, PRIORITY_FIRST); + } virtual ~ModuleModesOnConnect() { |
