summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modmanager_static.cpp5
-rw-r--r--src/modules/m_abbreviation.cpp11
2 files changed, 9 insertions, 7 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp
index 2bcd78e6c..18a95f78f 100644
--- a/src/modmanager_static.cpp
+++ b/src/modmanager_static.cpp
@@ -1,4 +1,4 @@
-#define MODNAME AllModule
+#define MODNAME cmd_all
#include "inspircd.h"
#include "exitcodes.h"
@@ -161,7 +161,8 @@ void ModuleManager::Reload(Module* mod, HandlerBase1<void, bool>* callback)
void ModuleManager::LoadAll()
{
- Load("AllModule", true);
+ Load("cmd_all", true);
+ Load("cmd_whowas.so", true);
ConfigTagList tags = ServerInstance->Config->ConfTags("module");
for(ConfigIter i = tags.first; i != tags.second; ++i)
diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp
index f0086ddcb..b87e352d2 100644
--- a/src/modules/m_abbreviation.cpp
+++ b/src/modules/m_abbreviation.cpp
@@ -17,13 +17,14 @@
class ModuleAbbreviation : public Module
{
-
public:
-
- ModuleAbbreviation()
- {
+ void init()
+ {
ServerInstance->Modules->Attach(I_OnPreCommand, this);
- /* Must do this first */
+ }
+
+ void Prioritize()
+ {
ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
}