]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/precommand.cpp
Merge pull request #1359 from genius3000/insp20+sasl_no_server
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / precommand.cpp
index 15456f27610d9560dc0a86f0fbdabb385c0bddbd..b331571ca3d2de721e15eea2bff9de8cea3230ec 100644 (file)
@@ -1,16 +1,23 @@
-/*       +------------------------------------+
- *       | Inspire Internet Relay Chat Daemon |
- *       +------------------------------------+
+/*
+ * InspIRCd -- Internet Relay Chat Daemon
  *
- *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
- * See: http://wiki.inspircd.org/Credits
+ *   Copyright (C) 2008 Thomas Stagner <aquanight@inspircd.org>
+ *   Copyright (C) 2007 Craig Edwards <craigedwards@brainbox.cc>
  *
- * This program is free but copyrighted software; see
- *       the file COPYING for details.
+ * This file is part of InspIRCd.  InspIRCd is free software: you can
+ * redistribute it and/or modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation, version 2.
  *
- * ---------------------------------------------------
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+
 /* $ModDesc: Provides a spanning tree server link protocol */
 
 #include "inspircd.h"
@@ -34,14 +41,6 @@ ModResult ModuleSpanningTree::OnPreCommand(std::string &command, std::vector<std
        {
                return this->HandleConnect(parameters,user);
        }
-       else if (command == "STATS")
-       {
-               return this->HandleStats(parameters,user);
-       }
-       else if (command == "ADMIN")
-       {
-               return this->HandleAdmin(parameters,user);
-       }
        else if (command == "SQUIT")
        {
                return this->HandleSquit(parameters,user);
@@ -50,10 +49,6 @@ ModResult ModuleSpanningTree::OnPreCommand(std::string &command, std::vector<std
        {
                return this->HandleMap(parameters,user) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
        }
-       else if ((command == "TIME") && (parameters.size() > 0))
-       {
-               return this->HandleTime(parameters,user);
-       }
        else if (command == "LINKS")
        {
                this->HandleLinks(parameters,user);