From 423add1bda12f19aea5ed8160b9f87d040a222d8 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 10 Sep 2008 19:44:21 +0000 Subject: 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 --- src/modules/m_conn_umodes.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/modules') 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; -- cgit v1.2.3