]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_abbreviation.cpp
Fix some numerics
[user/henk/code/inspircd.git] / src / modules / m_abbreviation.cpp
index a7bf8ceeebd8532e3b60b3ad81f72ecba1b41ac9..d2fa09c4ebad1106a5f37776c50c85a5832ea6e7 100644 (file)
@@ -42,7 +42,7 @@ class ModuleAbbreviation : public Module
                size_t clen = command.length() - 1;
                std::string foundcommand, matchlist;
                bool foundmatch = false;
-               const CommandParser::CommandMap& commands = ServerInstance->Parser->GetCommands();
+               const CommandParser::CommandMap& commands = ServerInstance->Parser.GetCommands();
                for (CommandParser::CommandMap::const_iterator n = commands.begin(); n != commands.end(); ++n)
                {
                        if (!command.compare(0, clen, n->first, 0, clen))
@@ -67,7 +67,7 @@ class ModuleAbbreviation : public Module
                /* Ambiguous command, list the matches */
                if (!matchlist.empty())
                {
-                       user->WriteNumeric(420, ":Ambiguous abbreviation, posssible matches: %s%s", foundcommand.c_str(), matchlist.c_str());
+                       user->WriteNumeric(420, ":Ambiguous abbreviation, possible matches: %s%s", foundcommand.c_str(), matchlist.c_str());
                        return MOD_RES_DENY;
                }