summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/access.h4
-rw-r--r--include/account.h3
-rw-r--r--include/anope.h3
-rw-r--r--include/base.h6
-rw-r--r--include/bots.h5
-rw-r--r--include/channels.h3
-rw-r--r--include/commands.h2
-rw-r--r--include/config.h3
-rw-r--r--include/defs.h5
-rw-r--r--include/extensible.h3
-rw-r--r--include/hashcomp.h5
-rw-r--r--include/language.h4
-rw-r--r--include/lists.h4
-rw-r--r--include/logger.h4
-rw-r--r--include/mail.h4
-rw-r--r--include/memo.h3
-rw-r--r--include/messages.h4
-rw-r--r--include/modes.h4
-rw-r--r--include/module.h2
-rw-r--r--include/modules.h3
-rw-r--r--include/modules/bs_badwords.h5
-rw-r--r--include/modules/bs_kick.h4
-rw-r--r--include/modules/cs_entrymsg.h5
-rw-r--r--include/modules/cs_log.h3
-rw-r--r--include/modules/cs_mode.h3
-rw-r--r--include/modules/dns.h35
-rw-r--r--include/modules/encryption.h4
-rw-r--r--include/modules/httpd.h8
-rw-r--r--include/modules/ldap.h8
-rw-r--r--include/modules/ns_cert.h3
-rw-r--r--include/modules/os_forbid.h9
-rw-r--r--include/modules/os_ignore.h4
-rw-r--r--include/modules/os_news.h9
-rw-r--r--include/modules/os_session.h9
-rw-r--r--include/modules/pseudoclients/chanserv.h9
-rw-r--r--include/modules/pseudoclients/global.h9
-rw-r--r--include/modules/pseudoclients/memoserv.h9
-rw-r--r--include/modules/pseudoclients/nickserv.h9
-rw-r--r--include/modules/redis.h4
-rw-r--r--include/modules/sasl.h2
-rw-r--r--include/modules/set_misc.h4
-rw-r--r--include/modules/sql.h4
-rw-r--r--include/modules/ssl.h8
-rw-r--r--include/modules/suspend.h3
-rw-r--r--include/modules/xmlrpc.h9
-rw-r--r--include/opertype.h6
-rw-r--r--include/protocol.h3
-rw-r--r--include/regchannel.h3
-rw-r--r--include/regexpr.h4
-rw-r--r--include/serialize.h3
-rw-r--r--include/servers.h3
-rw-r--r--include/service.h4
-rw-r--r--include/services.h3
-rw-r--r--include/socketengine.h3
-rw-r--r--include/sockets.h3
-rw-r--r--include/threadengine.h3
-rw-r--r--include/timers.h3
-rw-r--r--include/uplink.h4
-rw-r--r--include/users.h4
-rw-r--r--include/version.cpp2
-rw-r--r--include/xline.h3
61 files changed, 162 insertions, 145 deletions
diff --git a/include/access.h b/include/access.h
index 323dc814d..c77d9aa29 100644
--- a/include/access.h
+++ b/include/access.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef ACCESS_H
@@ -174,4 +173,3 @@ class CoreExport AccessGroup : public std::vector<ChanAccess *>
};
#endif
-
diff --git a/include/account.h b/include/account.h
index 2c8c6ecb5..c49f5f205 100644
--- a/include/account.h
+++ b/include/account.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef ACCOUNT_H
diff --git a/include/anope.h b/include/anope.h
index d27aa6546..dadc73b13 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef ANOPE_H
diff --git a/include/base.h b/include/base.h
index e64af87a4..677c0cfc8 100644
--- a/include/base.h
+++ b/include/base.h
@@ -1,10 +1,9 @@
/*
*
- * Copyright (C) 2008-2011 Adam <Adam@anope.org>
- * Copyright (C) 2008-2014 Anope Team <team@anope.org>
+ * (C) 2008-2011 Adam <Adam@anope.org>
+ * (C) 2008-2016 Anope Team <team@anope.org>
*
* Please read COPYING and README for further details.
- *
*/
#ifndef BASE_H
@@ -142,4 +141,3 @@ class Reference : public ReferenceBase
};
#endif // BASE_H
-
diff --git a/include/bots.h b/include/bots.h
index bab3931c5..6b429b66d 100644
--- a/include/bots.h
+++ b/include/bots.h
@@ -1,10 +1,9 @@
/*
*
- * Copyright (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
- * Copyright (C) 2008-2014 Anope Team <team@anope.org>
+ * (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
+ * (C) 2008-2016 Anope Team <team@anope.org>
*
* Please read COPYING and README for further details.
- *
*/
#ifndef BOTS_H
diff --git a/include/channels.h b/include/channels.h
index 23867c792..99620b7f3 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -1,10 +1,9 @@
/* Channel support
*
- * (C) 2008-2014 Anope Team
+ * (C) 2008-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
- *
*/
#ifndef CHANNELS_H
diff --git a/include/commands.h b/include/commands.h
index 2a1b34da2..dee85c56f 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -1,6 +1,6 @@
/* Declarations for command data.
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/include/config.h b/include/config.h
index 2ae6e3ced..e59bd6a85 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef CONFIG_H
diff --git a/include/defs.h b/include/defs.h
index 3d8ebf4ff..5cc0cb7ac 100644
--- a/include/defs.h
+++ b/include/defs.h
@@ -1,16 +1,14 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
-
class AccessGroup;
class AutoKick;
class BotInfo;
@@ -53,4 +51,3 @@ struct MemoInfo;
struct ModeLock;
struct Oper;
namespace SASL { struct Message; }
-
diff --git a/include/extensible.h b/include/extensible.h
index c9787fd21..aec29a8f6 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -1,10 +1,9 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
- *
*/
#ifndef EXTENSIBLE_H
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 1b225de7d..4f319c21d 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -1,10 +1,9 @@
/*
*
- * Copyright (C) 2002-2011 InspIRCd Development Team
- * Copyright (C) 2009-2014 Anope Team <team@anope.org>
+ * (C) 2002-2011 InspIRCd Development Team
+ * (C) 2009-2016 Anope Team <team@anope.org>
*
* Please read COPYING and README for further details.
- *
*/
#ifndef HASHCOMP_H
diff --git a/include/language.h b/include/language.h
index 7832f4692..a214ef214 100644
--- a/include/language.h
+++ b/include/language.h
@@ -1,10 +1,9 @@
/*
*
- * (C) 2008-2014 Anope Team
+ * (C) 2008-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
- *
*/
#include "anope.h"
@@ -126,4 +125,3 @@ namespace Language
#define HOST_SET_IDENTTOOLONG _("Error! The vHost ident is too long, please use an ident shorter than %d characters.")
#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vHost assigned to this nick.")
#define HOST_NO_VIDENT _("Your IRCd does not support vIdent's, if this is incorrect, please report this as a possible bug")
-
diff --git a/include/lists.h b/include/lists.h
index cb8e0cb64..594f2c5ad 100644
--- a/include/lists.h
+++ b/include/lists.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef LISTS_H
@@ -93,4 +92,3 @@ class CoreExport InfoFormatter
};
#endif // LISTS_H
-
diff --git a/include/logger.h b/include/logger.h
index e065e79bd..349ca5a55 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef LOGGER_H
@@ -143,4 +142,3 @@ class CoreExport LogInfo
};
#endif // LOGGER_H
-
diff --git a/include/mail.h b/include/mail.h
index 5a355ab5f..4b3aaa9bd 100644
--- a/include/mail.h
+++ b/include/mail.h
@@ -1,14 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
- *
*/
#ifndef MAIL_H
diff --git a/include/memo.h b/include/memo.h
index 75691d89f..344ce6bf6 100644
--- a/include/memo.h
+++ b/include/memo.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#ifndef MEMO_H
diff --git a/include/messages.h b/include/messages.h
index 7b22a6ef4..dde8a506e 100644
--- a/include/messages.h
+++ b/include/messages.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#include "protocol.h"
@@ -172,4 +171,3 @@ namespace Message
};
} // namespace Message
-
diff --git a/include/modes.h b/include/modes.h
index 729e979d4..b4290e97f 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -1,7 +1,7 @@
/* Mode support
*
- * Copyright (C) 2008-2011 Adam <Adam@anope.org>
- * Copyright (C) 2008-2014 Anope Team <team@anope.org>
+ * (C) 2008-2011 Adam <Adam@anope.org>
+ * (C) 2008-2016 Anope Team <team@anope.org>
*
* Please read COPYING and README for further details.
*/
diff --git a/include/module.h b/include/module.h
index d7845f65a..c8abe21f4 100644
--- a/include/module.h
+++ b/include/module.h
@@ -1,6 +1,6 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/include/modules.h b/include/modules.h
index 7367e2986..52fc4c676 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1,13 +1,12 @@
/* Modular support
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
#include "serialize.h"
diff --git a/include/modules/bs_badwords.h b/include/modules/bs_badwords.h
index 678512c96..80c5f17b6 100644
--- a/include/modules/bs_badwords.h
+++ b/include/modules/bs_badwords.h
@@ -1,14 +1,12 @@
/* BotServ core functions
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
- *
*/
/** Flags for badwords
@@ -70,4 +68,3 @@ struct BadWords
virtual void Check() = 0;
};
-
diff --git a/include/modules/bs_kick.h b/include/modules/bs_kick.h
index 61cd987d5..8fba141f1 100644
--- a/include/modules/bs_kick.h
+++ b/include/modules/bs_kick.h
@@ -1,14 +1,12 @@
/* BotServ core functions
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
- *
*/
/* Indices for TTB (Times To Ban) */
diff --git a/include/modules/cs_entrymsg.h b/include/modules/cs_entrymsg.h
index 71b9d6656..8636bfdbb 100644
--- a/include/modules/cs_entrymsg.h
+++ b/include/modules/cs_entrymsg.h
@@ -1,9 +1,9 @@
/*
- * (C) 2003-2014 Anope Team
+ *
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
- *
*/
struct EntryMsg
@@ -32,4 +32,3 @@ struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >
virtual EntryMsg* Create() = 0;
};
-
diff --git a/include/modules/cs_log.h b/include/modules/cs_log.h
index 5259c0880..d14179c70 100644
--- a/include/modules/cs_log.h
+++ b/include/modules/cs_log.h
@@ -1,6 +1,6 @@
/* ChanServ core functions
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -40,4 +40,3 @@ struct LogSettings : Serialize::Checker<std::vector<LogSetting *> >
virtual ~LogSettings() { }
virtual LogSetting *Create() = 0;
};
-
diff --git a/include/modules/cs_mode.h b/include/modules/cs_mode.h
index a4f0fe3f5..29a9a63ff 100644
--- a/include/modules/cs_mode.h
+++ b/include/modules/cs_mode.h
@@ -1,6 +1,6 @@
/* ChanServ core functions
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -87,4 +87,3 @@ struct ModeLocks
virtual void Check() = 0;
};
-
diff --git a/include/modules/dns.h b/include/modules/dns.h
index 37af05cc9..646691cb1 100644
--- a/include/modules/dns.h
+++ b/include/modules/dns.h
@@ -1,15 +1,14 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
-
+
#ifndef DNS_H
#define DNS_H
@@ -53,7 +52,7 @@ namespace DNS
QUERYFLAGS_Z = 0x70,
QUERYFLAGS_RCODE = 0xF
};
-
+
enum Error
{
ERROR_NONE,
@@ -70,13 +69,13 @@ namespace DNS
ERROR_NO_RECORDS,
ERROR_INVALIDTYPE
};
-
+
struct Question
{
Anope::string name;
QueryType type;
unsigned short qclass;
-
+
Question() : type(QUERY_NONE), qclass(0) { }
Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { }
inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; }
@@ -89,7 +88,7 @@ namespace DNS
}
};
};
-
+
struct ResourceRecord : Question
{
unsigned int ttl;
@@ -99,7 +98,7 @@ namespace DNS
ResourceRecord(const Anope::string &n, QueryType t, unsigned short c = 1) : Question(n, t, c), ttl(0), created(Anope::CurTime) { }
ResourceRecord(const Question &q) : Question(q), ttl(0), created(Anope::CurTime) { }
};
-
+
struct Query
{
std::vector<Question> questions;
@@ -123,14 +122,14 @@ namespace DNS
virtual void Process(Request *req) = 0;
virtual void RemoveRequest(Request *req) = 0;
-
+
virtual bool HandlePacket(ReplySocket *s, const unsigned char *const data, int len, sockaddrs *from) = 0;
-
+
virtual void UpdateSerial() = 0;
virtual void Notify(const Anope::string &zone) = 0;
virtual uint32_t GetSerial() const = 0;
};
-
+
/** A DNS query.
*/
class Request : public Timer, public Question
@@ -146,22 +145,22 @@ namespace DNS
Request(Manager *mgr, Module *c, const Anope::string &addr, QueryType qt, bool cache = false) : Timer(0), Question(addr, qt), manager(mgr),
use_cache(cache), id(0), creator(c) { }
-
+
virtual ~Request()
{
manager->RemoveRequest(this);
}
-
+
/** Called when this request succeeds
* @param r The query sent back from the nameserver
*/
virtual void OnLookupComplete(const Query *r) = 0;
-
+
/** Called when this request fails or times out.
* @param r The query sent back from the nameserver, check the error code.
*/
virtual void OnError(const Query *r) { }
-
+
/** Used to time out the query, xalls OnError and lets the TimerManager
* delete this request.
*/
@@ -173,9 +172,7 @@ namespace DNS
this->OnError(&rr);
}
};
-
+
} // namespace DNS
-
+
#endif // DNS_H
-
-
diff --git a/include/modules/encryption.h b/include/modules/encryption.h
index 95c5703aa..50ca066c3 100644
--- a/include/modules/encryption.h
+++ b/include/modules/encryption.h
@@ -1,13 +1,12 @@
/*
*
- * (C) 2003-2014 Anope Team
+ * (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
*/
namespace Encryption
@@ -34,4 +33,3 @@ namespace Encryption
virtual IV GetDefaultIV() = 0;
};
}
-
diff --git a/include/modules/httpd.h b/include/modules/httpd.h
index a2f5af04a..8df3c181b 100644
--- a/include/modules/httpd.h
+++ b/include/modules/httpd.h
@@ -1,3 +1,11 @@
+/*
+ *
+ * (C) 2012-2016 Anope Team
+ * Contact us at team@anope.org
+ *
+ * Please read COPYING and README for further details.
+ */
+
#ifndef ANOPE_HTTPD_H
#define ANOPE_HTTPD_H
diff --git a/include/modules/ldap.h b/include/modules/ldap.h
index 20ca71cf8..373c9cfa3 100644
--- a/include/modules/ldap.h
+++ b/include/modules/ldap.h
@@ -1,3 +1,11 @@
+/*
+ *
+ * (C) 2011-2016 Anope Team
+ * Contact us at team@anope.org
+ *
+ * Please read COPYING and README for further details.
+ */
+
#ifndef ANOPE_LDAP_H
#define ANOPE_LDAP_H
diff --git a/include/modules/ns_cert.h b/include/modules/ns_cert.h
index e02b9bd6e..637948923 100644
--- a/