From 4aa27e75af8da0a5bc2e35f931f0165339f5f289 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 22 Nov 2017 12:13:42 +0000 Subject: Rename the spanningtree module header to server. In the future we will have server linking modules that are not the spanningtree module. --- include/modules/server.h | 41 +++++++++++++++++++++++++++++++++++++++++ include/modules/spanningtree.h | 41 ----------------------------------------- 2 files changed, 41 insertions(+), 41 deletions(-) create mode 100644 include/modules/server.h delete mode 100644 include/modules/spanningtree.h (limited to 'include/modules') diff --git a/include/modules/server.h b/include/modules/server.h new file mode 100644 index 000000000..8e64a3b35 --- /dev/null +++ b/include/modules/server.h @@ -0,0 +1,41 @@ +/* + * InspIRCd -- Internet Relay Chat Daemon + * + * Copyright (C) 2009 Daniel De Graaf + * + * 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 . + */ + + +#pragma once + +#include "event.h" + +class ServerEventListener : public Events::ModuleEventListener +{ + public: + ServerEventListener(Module* mod) + : ModuleEventListener(mod, "event/server") + { + } + + /** Fired when a server finishes burst + * @param server Server that recently linked and finished burst + */ + virtual void OnServerLink(const Server* server) { } + + /** Fired when a server splits + * @param server Server that split + */ + virtual void OnServerSplit(const Server* server) { } +}; diff --git a/include/modules/spanningtree.h b/include/modules/spanningtree.h deleted file mode 100644 index e71cdf9d0..000000000 --- a/include/modules/spanningtree.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * InspIRCd -- Internet Relay Chat Daemon - * - * Copyright (C) 2009 Daniel De Graaf - * - * 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 . - */ - - -#pragma once - -#include "event.h" - -class SpanningTreeEventListener : public Events::ModuleEventListener -{ - public: - SpanningTreeEventListener(Module* mod) - : ModuleEventListener(mod, "event/spanningtree") - { - } - - /** Fired when a server finishes burst - * @param server Server that recently linked and finished burst - */ - virtual void OnServerLink(const Server* server) { } - - /** Fired when a server splits - * @param server Server that split - */ - virtual void OnServerSplit(const Server* server) { } -}; -- cgit v1.2.3