summaryrefslogtreecommitdiff
path: root/include/servers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/servers.h')
-rw-r--r--include/servers.h32
1 files changed, 21 insertions, 11 deletions
diff --git a/include/servers.h b/include/servers.h
index 083a6cefe..50680df6a 100644
--- a/include/servers.h
+++ b/include/servers.h
@@ -1,16 +1,23 @@
/*
+ * Anope IRC Services
*
- * (C) 2003-2017 Anope Team
- * Contact us at team@anope.org
+ * Copyright (C) 2010-2017 Anope Team <team@anope.org>
*
- * Please read COPYING and README for further details.
+ * This file is part of Anope. Anope 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.
*
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
+ * 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 see <http://www.gnu.org/licenses/>.
*/
-#ifndef SERVERS_H
-#define SERVERS_H
+#pragma once
#include "services.h"
#include "anope.h"
@@ -71,7 +78,7 @@ class CoreExport Server : public Extensible
* @param sid Server sid/numeric
* @param jupe If the server is juped
*/
- Server(Server *uplink, const Anope::string &name, unsigned hops, const Anope::string &description, const Anope::string &sid = "", bool jupe = false);
+ Server(Server *uplink, const Anope::string &name, unsigned int hops, const Anope::string &description, const Anope::string &sid = "", bool jupe = false);
private:
/** Destructor
@@ -80,7 +87,11 @@ class CoreExport Server : public Extensible
public:
/* Number of users on the server */
- unsigned users;
+ unsigned int users;
+
+ Logger logger;
+
+ void Burst();
/** Delete this server with a reason
* @param reason The reason
@@ -174,7 +185,7 @@ class CoreExport Server : public Extensible
* @param source The source of the message
* @param message The message
*/
- void Notice(BotInfo *source, const Anope::string &message);
+ void Notice(ServiceBot *source, const Anope::string &message);
/** Find a server
* @param name The name or SID/numeric
@@ -184,4 +195,3 @@ class CoreExport Server : public Extensible
static Server *Find(const Anope::string &name, bool name_only = false);
};
-#endif // SERVERS_H