From 440ca935da120a91c29cb2bb48102abc2fccae47 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Mon, 22 Mar 2010 12:03:55 -0500 Subject: Fix some issues found using valgrind/pure_static --- src/modules/m_abbreviation.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/m_abbreviation.cpp') 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); } -- cgit v1.3.1-10-gc9f91