]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_abbreviation.cpp
Fix infinite loop on alias expansion, found by Adam
[user/henk/code/inspircd.git] / src / modules / m_abbreviation.cpp
index 8ff325730225774e7cdec786ce55efa01c1cae67..a24aefc99e732c156ddb4b47f5b292b8e83eaedd 100644 (file)
@@ -20,17 +20,16 @@ class ModuleAbbreviation : public Module
 
  public:
 
-       ModuleAbbreviation(InspIRCd* Me)
-               : Module(Me)
-       {
-               Me->Modules->Attach(I_OnPreCommand, this);
+       ModuleAbbreviation()
+                       {
+               ServerInstance->Modules->Attach(I_OnPreCommand, this);
                /* Must do this first */
-               Me->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
+               ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
        }
 
        virtual Version GetVersion()
        {
-               return Version("Provides the ability to abbreviate commands a-la BBC BASIC keywords.",VF_VENDOR,API_VERSION);
+               return Version("Provides the ability to abbreviate commands a-la BBC BASIC keywords.",VF_VENDOR);
        }
 
        virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, User *user, bool validated, const std::string &original_line)