aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/rehash.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-04-08 15:00:28 +0000
committerGravatar w00t2008-04-08 15:00:28 +0000
commit94ab2b6eb5c8d719da0d9b72bc74ee29017d7995 (patch)
tree887e329ba879c4a674d8570f94c906644aeeef37 /src/modules/m_spanningtree/rehash.cpp
parentUpdate syntax (diff)
Remote REHASH stuff, this drove me nuts but should probably work now.. thx brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9423 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/rehash.cpp')
-rw-r--r--src/modules/m_spanningtree/rehash.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/modules/m_spanningtree/rehash.cpp b/src/modules/m_spanningtree/rehash.cpp
deleted file mode 100644
index 6707b897a..000000000
--- a/src/modules/m_spanningtree/rehash.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-/* +------------------------------------+
- * | Inspire Internet Relay Chat Daemon |
- * +------------------------------------+
- *
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
- *
- * This program is free but copyrighted software; see
- * the file COPYING for details.
- *
- * ---------------------------------------------------
- */
-
-#include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
-#include "socket.h"
-#include "wildcard.h"
-#include "xline.h"
-#include "transport.h"
-#include "socketengine.h"
-
-#include "m_spanningtree/main.h"
-#include "m_spanningtree/utils.h"
-#include "m_spanningtree/treeserver.h"
-#include "m_spanningtree/link.h"
-#include "m_spanningtree/treesocket.h"
-#include "m_spanningtree/resolvers.h"
-#include "m_spanningtree/handshaketimer.h"
-
-/* $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 */
-
-bool TreeSocket::RemoteRehash(const std::string &prefix, std::deque<std::string> &params)
-{
- if (params.size() < 1)
- return false;
-
- std::string servermask = params[0];
-
- if (this->Instance->MatchText(this->Instance->Config->ServerName,servermask))
- {
- this->Instance->SNO->WriteToSnoMask('l',"Remote rehash initiated by \002"+prefix+"\002.");
- this->Instance->RehashServer();
- }
- Utils->DoOneToAllButSender(prefix,"REHASH",params,prefix);
- return true;
-}
-