From e7aac9ee56d7bfff83287e3068ac18f60d43a1f9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Aug 2006 17:02:38 +0000 Subject: Spanningtree tidyups Start of SnomaskManager class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5061 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/snomasks.h | 36 ++++++++++++++++++++++++++++++++++++ src/modules/m_spanningtree.cpp | 2 ++ src/snomasks.cpp | 9 ++++++++- 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/include/snomasks.h b/include/snomasks.h index e69de29bb..ab8980c26 100644 --- a/include/snomasks.h +++ b/include/snomasks.h @@ -0,0 +1,36 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. + * E-mail: + * + * + * + * 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 +#include +#include "configreader.h" +#include "inspircd.h" + +class SnomaskManager : public Extensible +{ + private: + InspIRCd* ServerInstance; + public: + SnomaskManager(InspIRCd* Instance); + ~SnomaskManager(); + + +}; + +#endif diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index ad7203177..3a020f342 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -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()); diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 3b52e2f0e..6750ebcc6 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -21,6 +21,13 @@ #include "modules.h" #include "commands.h" #include "xline.h" - #include "snomasks.h" +SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance) +{ +} + +SnomaskManager::~SnomaskManager() +{ +} + -- cgit v1.2.3