diff options
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/bs_badwords.h | 5 | ||||
| -rw-r--r-- | include/modules/bs_kick.h | 4 | ||||
| -rw-r--r-- | include/modules/cs_entrymsg.h | 5 | ||||
| -rw-r--r-- | include/modules/cs_log.h | 3 | ||||
| -rw-r--r-- | include/modules/cs_mode.h | 3 | ||||
| -rw-r--r-- | include/modules/dns.h | 35 | ||||
| -rw-r--r-- | include/modules/encryption.h | 4 | ||||
| -rw-r--r-- | include/modules/httpd.h | 8 | ||||
| -rw-r--r-- | include/modules/ldap.h | 8 | ||||
| -rw-r--r-- | include/modules/ns_cert.h | 3 | ||||
| -rw-r--r-- | include/modules/os_forbid.h | 9 | ||||
| -rw-r--r-- | include/modules/os_ignore.h | 4 | ||||
| -rw-r--r-- | include/modules/os_news.h | 9 | ||||
| -rw-r--r-- | include/modules/os_session.h | 9 | ||||
| -rw-r--r-- | include/modules/pseudoclients/chanserv.h | 9 | ||||
| -rw-r--r-- | include/modules/pseudoclients/global.h | 9 | ||||
| -rw-r--r-- | include/modules/pseudoclients/memoserv.h | 9 | ||||
| -rw-r--r-- | include/modules/pseudoclients/nickserv.h | 9 | ||||
| -rw-r--r-- | include/modules/redis.h | 4 | ||||
| -rw-r--r-- | include/modules/sasl.h | 2 | ||||
| -rw-r--r-- | include/modules/set_misc.h | 4 | ||||
| -rw-r--r-- | include/modules/sql.h | 4 | ||||
| -rw-r--r-- | include/modules/ssl.h | 8 | ||||
| -rw-r--r-- | include/modules/suspend.h | 3 | ||||
| -rw-r--r-- | include/modules/xmlrpc.h | 9 |
25 files changed, 120 insertions, 59 deletions
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/include/modules/ns_cert.h +++ b/include/modules/ns_cert.h @@ -1,6 +1,6 @@ /* NickServ 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. @@ -68,4 +68,3 @@ class CertService : public Service virtual NickCore* FindAccountFromCert(const Anope::string &cert) = 0; }; - diff --git a/include/modules/os_forbid.h b/include/modules/os_forbid.h index fe96ba5c6..b4702d844 100644 --- a/include/modules/os_forbid.h +++ b/include/modules/os_forbid.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 OS_FORBID_H #define OS_FORBID_H @@ -43,4 +51,3 @@ class ForbidService : public Service static ServiceReference<ForbidService> forbid_service("ForbidService", "forbid"); #endif - diff --git a/include/modules/os_ignore.h b/include/modules/os_ignore.h index 2511d47b2..9ba07a92d 100644 --- a/include/modules/os_ignore.h +++ b/include/modules/os_ignore.h @@ -1,6 +1,6 @@ /* OperServ ignore interface * - * (C) 2003-2014 Anope Team + * (C) 2003-2016 Anope Team * Contact us at team@anope.org * * Please read COPYING and README for further details. @@ -9,7 +9,6 @@ * Based on the original code of Services by Andy Church. */ - struct IgnoreData { Anope::string mask; @@ -42,4 +41,3 @@ class IgnoreService : public Service }; static ServiceReference<IgnoreService> ignore_service("IgnoreService", "ignore"); - diff --git a/include/modules/os_news.h b/include/modules/os_news.h index 458a5a82b..e7303850a 100644 --- a/include/modules/os_news.h +++ b/include/modules/os_news.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 OS_NEWS #define OS_NEWS @@ -42,4 +50,3 @@ class NewsService : public Service static ServiceReference<NewsService> news_service("NewsService", "news"); #endif // OS_NEWS - diff --git a/include/modules/os_session.h b/include/modules/os_session.h index 957fe6043..a1bab86ad 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.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 OS_SESSION_H #define OS_SESSION_H @@ -84,4 +92,3 @@ Serializable* Exception::Unserialize(Serializable *obj, Serialize::Data &data) } #endif - diff --git a/include/modules/pseudoclients/chanserv.h b/include/modules/pseudoclients/chanserv.h index e1c3849fd..a10e07939 100644 --- a/include/modules/pseudoclients/chanserv.h +++ b/include/modules/pseudoclients/chanserv.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 CHANSERV_H #define CHANSERV_H @@ -15,4 +23,3 @@ class ChanServService : public Service }; #endif // CHANSERV_H - diff --git a/include/modules/pseudoclients/global.h b/include/modules/pseudoclients/global.h index 1511214c9..c557ce099 100644 --- a/include/modules/pseudoclients/global.h +++ b/include/modules/pseudoclients/global.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 GLOBAL_H #define GLOBAL_H @@ -17,4 +25,3 @@ class GlobalService : public Service }; #endif // GLOBAL_H - diff --git a/include/modules/pseudoclients/memoserv.h b/include/modules/pseudoclients/memoserv.h index d35d3f8a0..abfbc3344 100644 --- a/include/modules/pseudoclients/memoserv.h +++ b/include/modules/pseudoclients/memoserv.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 MEMOSERV_H #define MEMOSERV_H @@ -31,4 +39,3 @@ class MemoServService : public Service }; #endif // MEMOSERV_H - diff --git a/include/modules/pseudoclients/nickserv.h b/include/modules/pseudoclients/nickserv.h index c0238ecfc..1b1d3e422 100644 --- a/include/modules/pseudoclients/nickserv.h +++ b/include/modules/pseudoclients/nickserv.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 NICKSERV_H #define NICKSERV_H @@ -14,4 +22,3 @@ class NickServService : public Service }; #endif // NICKSERV_H - diff --git a/include/modules/redis.h b/include/modules/redis.h index 941691a72..2f530735b 100644 --- a/include/modules/redis.h +++ b/include/modules/redis.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. - * */ namespace Redis @@ -71,4 +70,3 @@ namespace Redis virtual void CommitTransaction() = 0; }; } - diff --git a/include/modules/sasl.h b/include/modules/sasl.h index d9756949f..6cb1d21c9 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -1,6 +1,6 @@ /* * - * (C) 2014 Anope Team + * (C) 2014-2016 Anope Team * Contact us at team@anope.org * * Please read COPYING and README for further details. diff --git a/include/modules/set_misc.h b/include/modules/set_misc.h index d22d02798..f925119e2 100644 --- a/include/modules/set_misc.h +++ b/include/modules/set_misc.h @@ -1,5 +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. @@ -14,4 +15,3 @@ struct MiscData MiscData() { } virtual ~MiscData() { } }; - diff --git a/include/modules/sql.h b/include/modules/sql.h index 789bec98b..375de14b6 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -1,5 +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. @@ -213,4 +214,3 @@ namespace SQL }; } - diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 6eb97582c..d682933b5 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -1,3 +1,10 @@ +/* + * + * (C) 2010-2016 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + */ class SSLService : public Service { @@ -6,4 +13,3 @@ class SSLService : public Service virtual void Init(Socket *s) = 0; }; - diff --git a/include/modules/suspend.h b/include/modules/suspend.h index 1e49b8ad8..c5255b317 100644 --- a/include/modules/suspend.h +++ b/include/modules/suspend.h @@ -1,5 +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/xmlrpc.h b/include/modules/xmlrpc.h index d5a5ea4a7..87fa353ed 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -1,3 +1,11 @@ +/* + * + * (C) 2010-2016 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + */ + #include "httpd.h" class XMLRPCRequest @@ -37,4 +45,3 @@ class XMLRPCServiceInterface : public Service virtual void Reply(XMLRPCRequest &request) = 0; }; - |
