diff options
| author | Robby <robby@chatbelgie.be> | 2016-01-28 20:24:49 +0100 |
|---|---|---|
| committer | Robby <robby@chatbelgie.be> | 2016-01-28 20:24:49 +0100 |
| commit | f118960a25dd1f482e77586b7853107692d31ec9 (patch) | |
| tree | c9f232bfeee7a8bc35a4ff5aabfa93969ce3fbef /include | |
| parent | 5d6a71b6d2dc72d95e188c5b1a5bfb7527bd38cd (diff) | |
Update copyright to 2016. This was done with:
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
Added missing copyright headers to files that didn't have it yet.
Fixed some whitespace and blank lines along the way.
Diffstat (limited to 'include')
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 - |
