From 11cafc12d5440b67a9f676c9f6aa67840ca5399d Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 2 Apr 2013 20:12:15 +0100 Subject: Tidy up source files: - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues. --- include/modules/spanningtree.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 include/modules/spanningtree.h (limited to 'include/modules/spanningtree.h') diff --git a/include/modules/spanningtree.h b/include/modules/spanningtree.h new file mode 100644 index 000000000..99f4f9fc4 --- /dev/null +++ b/include/modules/spanningtree.h @@ -0,0 +1,40 @@ +/* + * 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 + +struct AddServerEvent : public Event +{ + const std::string servername; + AddServerEvent(Module* me, const std::string& name) + : Event(me, "new_server"), servername(name) + { + Send(); + } +}; + +struct DelServerEvent : public Event +{ + const std::string servername; + DelServerEvent(Module* me, const std::string& name) + : Event(me, "lost_server"), servername(name) + { + Send(); + } +}; -- cgit v1.3.1-10-gc9f91