diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-10 19:44:21 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-10 19:44:21 +0000 |
commit | 423add1bda12f19aea5ed8160b9f87d040a222d8 (patch) | |
tree | d840b12ad818c2d3b23abccebcd9532e6a90c8de /src/modules | |
parent | 901babedd35b248e923779e9d6261b26e3c7c4b7 (diff) |
Hook conn_umodes before anything else so that config order is less of a factor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10497 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_conn_umodes.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_conn_umodes.cpp b/src/modules/m_conn_umodes.cpp index e77dd3976..6abf416aa 100644 --- a/src/modules/m_conn_umodes.cpp +++ b/src/modules/m_conn_umodes.cpp @@ -22,13 +22,14 @@ class ModuleModesOnConnect : public Module ConfigReader *Conf; public: - ModuleModesOnConnect(InspIRCd* Me) - : Module(Me) + ModuleModesOnConnect(InspIRCd* Me) : Module(Me) { Conf = new ConfigReader(ServerInstance); - Implementation eventlist[] = { I_OnPostConnect, I_OnRehash }; + 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, PRIO_FIRST); } @@ -48,7 +49,7 @@ class ModuleModesOnConnect : public Module return Version("$Id$", VF_VENDOR,API_VERSION); } - virtual void OnPostConnect(User* user) + virtual void OnUserConnect(User* user) { if (!IS_LOCAL(user)) return; |