]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Spanningtree tidyups
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 17:02:38 +0000 (17:02 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 17:02:38 +0000 (17:02 +0000)
Start of SnomaskManager class

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5061 e03df62e-2008-0410-955e-edbf42e46eb7

include/snomasks.h
src/modules/m_spanningtree.cpp
src/snomasks.cpp

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ab8980c26f7e1795bb6759d85fb12ced1a51ef9d 100644 (file)
@@ -0,0 +1,36 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *                <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * --------------------------------------------------
+ */
+
+#ifndef __SNOMASKS_H__
+#define __SNOMASKS_H__
+
+#include <string>
+#include <vector>
+#include "configreader.h"
+#include "inspircd.h"
+
+class SnomaskManager : public Extensible
+{
+ private:
+       InspIRCd* ServerInstance;
+ public:
+       SnomaskManager(InspIRCd* Instance);
+       ~SnomaskManager();
+
+
+};
+
+#endif
index ad720317727a5c22363766cb9d3ec93d04cd5646..3a020f34243d4ada38101711acd45ed93ab3fd17 100644 (file)
@@ -1735,9 +1735,11 @@ class TreeSocket : public InspSocket
                for (std::string::iterator v = params[5].begin(); v != params[5].end(); v++)
                        _new->modes[(*v)-65] = 1;
 
+#ifdef SUPPORT_IP6LINKS
                if (params[6].find_first_of(":") != std::string::npos)
                        _new->SetSockAddr(AF_INET6, params[6].c_str(), 0);
                else
+#endif
                        _new->SetSockAddr(AF_INET, params[6].c_str(), 0);
 
                this->Instance->WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",_new->server,_new->nick,_new->ident,_new->host, _new->GetIPString());
index 3b52e2f0ef07efa825827cd0ba758a4abaf66e9f..6750ebcc6722155d9f845af2fe827b614750d09d 100644 (file)
 #include "modules.h"
 #include "commands.h"
 #include "xline.h"
-
 #include "snomasks.h"
 
+SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance)
+{
+}
+
+SnomaskManager::~SnomaskManager()
+{
+}
+