]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/precommand.cpp
Debug
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / precommand.cpp
index 00f2c598cbbab1b72e386fb524964c349a0bf88d..64e9a90ddc1743590c37b35dcde4524ba18536aa 100644 (file)
@@ -33,7 +33,7 @@
 
 /* $ModDep: m_spanningtree/timesynctimer.h m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h m_spanningtree/rconnect.h m_spanningtree/rsquit.h */
 
-int ModuleSpanningTree::OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line)
+int ModuleSpanningTree::OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line)
 {
        /* If the command doesnt appear to be valid, we dont want to mess with it. */
        if (!validated)
@@ -61,8 +61,7 @@ int ModuleSpanningTree::OnPreCommand(const std::string &command, const char** pa
        }
        else if (command == "MAP")
        {
-               this->HandleMap(parameters,pcnt,user);
-               return 1;
+               return this->HandleMap(parameters,pcnt,user);
        }
        else if ((command == "TIME") && (pcnt > 0))
        {